/* Minimal WP adaptations. All visual layout and responsive rules are inherited from V9. */
#wpadminbar{z-index:100000!important}
body.admin-bar .sitehead{top:32px}
@media(max-width:782px){body.admin-bar .sitehead{top:46px}}
.pets-fallback{padding-top:45px;padding-bottom:45px;max-width:1250px;margin:auto}
.pets-fallback img{max-width:100%;height:auto}
.pets-fallback-links{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.pets-fallback-links article{padding:18px;border:1px solid #e7e7e7;border-radius:10px}
.pets-fallback nav a{display:inline-block;margin:8px}
@media(max-width:767px){.pets-fallback-links{grid-template-columns:repeat(2,minmax(0,1fr))}}
.pets-noscript{padding:20px;text-align:center}
.pets-editor-content img{max-width:100%;height:auto}
.pets-editor-content a{color:#a82468;text-decoration:underline}
/* Fallback only shows before JS loads; navigation and content are ordinary HTML if JS is disabled */

.pets-acf-gallery{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:20px 0}
.pets-acf-gallery a{display:block;aspect-ratio:1;border-radius:10px;overflow:hidden}
.pets-acf-gallery img{width:100%;height:100%;object-fit:cover}
@media(max-width:650px){.pets-acf-gallery{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* pets.vn V10 – configurable display. Default archive sidebar left / single sidebar right. */
.pets-no-archive-sidebar .eco-archive,.pets-no-single-sidebar .single-body{grid-template-columns:1fr!important}
.pets-no-archive-sidebar .eco-main,.pets-no-single-sidebar .single-body>div:first-child{min-width:0}
.footer .brandcol .brand-logo-img{height:auto;object-fit:contain;max-width:100%}
.footer .pet-contact-line{margin:5px 0;overflow-wrap:anywhere}
.footer .pet-contact-line a{color:inherit;text-decoration:underline}

@media(max-width:540px){.footer .brandcol .brand-logo-img{max-width:150px!important}}

/* /fontmacdinh fallback for server-rendered content and WordPress classic editor. */
.pets-fallback,.pets-fallback *,.wp-block,.wp-block * {font-family:"Inter",-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif!important}

/* V13: Stable first paint and low-cost interactions, visual geometry unchanged. */
html.pets-loading #app .pets-fallback{visibility:hidden}
html.pets-loading #app{min-height:70vh}
.reveal,.reveal.visible{opacity:1!important;transform:none!important;transition:background-color .18s,border-color .18s,box-shadow .18s!important}
.sitehead{backdrop-filter:none!important;-webkit-backdrop-filter:none!important;background:#fff!important}
.pet-home-v6 .v6-lost-empty{height:100%;min-height:220px;border-radius:11px;overflow:hidden;position:relative;background:#fff0f6}
.pet-home-v6 .v6-lost-empty>img{height:100%;min-height:220px;width:100%;object-fit:cover;object-position:center 40%;display:block}
.pet-home-v6 .v6-lost-empty>div{position:absolute;bottom:0;left:0;right:0;padding:28px 18px 12px;color:#fff;background:linear-gradient(transparent,rgba(31,22,40,.72));display:flex;flex-direction:column;gap:3px}
.pet-home-v6 .v6-lost-empty strong{font-size:16px;font-weight:600}
.pet-home-v6 .v6-lost-empty span{font-size:12px;color:#fff}
@media(max-width:650px){.pet-home-v6 .v6-lost-empty,.pet-home-v6 .v6-lost-empty>img{min-height:170px;max-height:220px}}

/* V14 — precise archive polish: 3 facts on a single line, no two-row metadata. */
.pet-archive-v4 .eco-list-grid .v7-facts-bar,
.pet-archive-v4 .eco-list-grid .v7-facts-bar:last-child {
 display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;
 grid-auto-flow:column!important;grid-auto-columns:minmax(0,1fr)!important;
 align-items:center!important;gap:5px 7px!important;
 padding:8px 10px!important;min-width:0!important;
 min-height:34px!important;max-height:38px!important;overflow:hidden!important;
}
.pet-archive-v4 .eco-list-grid .v7-facts-bar .v7-fact,
.pet-archive-v4 .eco-list-grid .v7-facts-bar .v7-fact:last-child:nth-child(odd){
 display:inline-flex!important;grid-column:auto!important;
 align-items:center!important;min-width:0!important;max-width:100%!important;
 width:100%!important;overflow:hidden!important;white-space:nowrap!important;
 gap:4px!important;font-size:10px!important;line-height:1.3!important;
}
.pet-archive-v4 .eco-list-grid .v7-facts-bar .v7-fact-icon{
 flex:0 0 13px!important;width:13px!important;height:14px!important;align-self:center!important;margin:0!important;
}
.pet-archive-v4 .eco-list-grid .v7-facts-bar .v7-fact-icon svg{width:13px!important;height:13px!important}
.pet-archive-v4 .eco-list-grid .v7-facts-bar .v7-fact>span:last-child{
 display:block!important;flex:1 1 auto!important;min-width:0!important;max-width:100%!important;
 white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;
 overflow-wrap:normal!important;word-break:normal!important;
}
/* One compact filter row. Narrow screens scroll only the controls, never the entire site. */
.pet-archive-v4 .pets-filter-viewport{min-width:0;max-width:100%;width:100%;overflow-x:auto;overflow-y:hidden;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch;margin-bottom:13px;scrollbar-width:thin;}
.pet-archive-v4 .archive-tools{
 display:grid!important;grid-template-columns:minmax(175px,1.7fr) repeat(4,minmax(108px,1fr)) minmax(76px,auto)!important;
 align-items:center!important;min-width:760px!important;width:100%!important;
 gap:7px!important;padding:9px!important;margin:0!important;
}
.pet-archive-v4 .archive-tools>*{min-width:0!important;grid-column:auto!important;grid-row:auto!important;max-width:none!important;height:38px!important;box-sizing:border-box!important;}
.pet-archive-v4 .archive-tools #filterWord{grid-column:auto!important}
.pet-archive-v4 .archive-tools .btn{padding-inline:9px!important;max-width:none!important;white-space:nowrap!important}
@media(max-width:650px){
 .pet-archive-v4 .eco-list-grid .v7-facts-bar{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:3px 5px!important;padding:7px 8px!important;}
 .pet-archive-v4 .eco-list-grid .v7-facts-bar .v7-fact{font-size:10px!important;}
}
@media(max-width:370px){
 .pet-archive-v4 .eco-list-grid .v7-facts-bar{grid-template-columns:repeat(3,minmax(0,1fr))!important;}
}

/* V14: WordPress content shares /fontmacdinh with all frontend cards. */
html body :where(button,input,select,textarea,option),html body .pets-editor-content,html body .pets-editor-content :where(*),html body .wp-block,html body .wp-block :where(*){font-family:"Inter",-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif!important}
