/* Woodland #254734 brand palette, approved October 2026. Map category and game art colors stay independent. */
:root{--ink:#254734;--teal:#254734;--mint:#b5ed58;--bg:#f7f9f6;--line:#d7e1db;--muted:#526662;--route-lime:#b5ed58;--alert-red:#b42318}
.petsmap-logo{aspect-ratio:2015/508;background:transparent}
.petsmap-logo img{position:static!important;width:100%!important;height:100%!important;left:auto!important;top:auto!important;object-fit:contain!important;filter:none!important}
.profile-preview .cover{background:#eaf4e3;color:var(--ink)}
.profile-preview .cover .identity{padding-right:270px}
.profile-preview .cover:has(.preview-dog-mode) .identity{padding-right:310px}
.profile-preview .preview-card-tools>.preview-shop{display:grid;place-items:center;border:0;background:transparent;width:44px;height:44px;padding:0;border-radius:10px}
.preview-shop:hover{background:#2547340d!important}
.nav-badge{background:var(--ink)}
.walk-page:has(.walk-summary-close){position:relative;padding-top:12px}
.walk-summary-close{position:absolute;right:20px;top:8px;display:grid;place-items:center;width:44px;height:44px;background:#edf3ea;border-radius:50%;z-index:1}
.walk-summary-close svg{width:21px;height:21px;stroke-width:1.8}
.walk-page:has(.walk-summary-close)>h1{padding-right:48px}
.walk-summary-close:focus-visible{outline:2px solid var(--teal);outline-offset:3px}
@media(max-width:760px){.profile-preview .cover .identity,.profile-preview .cover:has(.preview-dog-mode) .identity{padding-right:0;padding-top:48px}.walk-summary-close{right:16px}}
@media(min-width:1280px){
 /* Match the fixed, centered, cover-sized trail artwork (1536 by 1024). */
 .profile-trail-animals{position:fixed;top:0;left:50%;width:max(100vw,150vh);height:max(66.666667vw,100vh);transform:translateX(-50%);pointer-events:none;z-index:1}
 .trail-animal{position:absolute;width:clamp(64px,5.22vw,100px);height:clamp(64px,5.22vw,100px);transform:translate(-50%,-50%);pointer-events:auto}
 .trail-animal-sprite{background-image:url('profile-more-animals.webp');background-size:400% 500%}
 .trail-animal{right:auto}
 .trail-spaniel{left:10.2%;top:8.8%}
 .trail-corgi{left:6.3%;top:28.5%}
 .trail-terrier{left:5.3%;top:48%}
 .trail-spaniel-right{left:92%;top:42%}
 .trail-rabbit-two{left:8.8%;top:63.5%}
 .trail-rabbit{left:93.4%;top:8%}
 .trail-squirrel{left:84.8%;top:33%}
 .trail-house{left:90%;top:62%}
 .trail-spaniel .trail-animal-sprite,.trail-spaniel-right .trail-animal-sprite{background-position-y:0}
 .trail-corgi .trail-animal-sprite{background-position-y:25%}
 .trail-terrier .trail-animal-sprite{background-position-y:50%}
 .trail-rabbit .trail-animal-sprite,.trail-rabbit-two .trail-animal-sprite{background-position-y:75%}
 .trail-house .trail-animal-sprite{background-position-y:100%}
 .trail-squirrel .trail-animal-sprite{background-image:url('profile-animal-sprites.webp');background-size:400% 200%;background-position-y:100%}
 .trail-animal.playing .trail-animal-sprite{animation-duration:.6s;animation-iteration-count:3}
 .trail-rabbit-two.playing .trail-animal-sprite{animation-direction:reverse}
 .trail-animal-reply{font-weight:700;border-color:var(--teal);border-radius:45% 45% 45% 8%;bottom:85%;padding:8px 12px}
}
@media(prefers-reduced-motion:reduce){.trail-animal.playing .trail-animal-sprite{animation:none}}
.profile-game-score-summary{display:flex;flex-wrap:wrap;gap:4px 12px}
.profile-game-score-chip{white-space:normal}
.profile-game-scores dd{font-variant-numeric:tabular-nums}
.familiar-linked-pin{margin:16px 0}
.familiar-pin-card{display:flex;align-items:center;gap:18px;width:100%;text-align:left;padding:16px}
.familiar-pin-marker{display:block;flex:0 0 56px;padding:0 5px}
.familiar-pin-card>span:last-child{display:grid;gap:5px;min-width:0;overflow-wrap:anywhere}
.familiar-pin-card small{font-size:14px;color:var(--muted)}
.familiar-pin-card>span:last-child>span{font-size:14px;text-decoration:underline}
.familiar-linked-pin label{display:block;font-size:14px;margin-bottom:8px}
.familiar-linked-pin select{width:100%;max-width:100%;padding:12px;border:1px solid var(--line);border-radius:12px;background:white;margin-bottom:8px}

/* Legacy home base: one name selector, consistent totals and compact bookmarks. */
.profile:not(.profile-preview)>.cover .profile-pin-stats dd,
.profile:not(.profile-preview)>.cover .profile-walk-stats dl>div:first-child dd{font-size:clamp(22px,4.5vw,32px);line-height:1.25;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.classic-pet-name .pet-switcher{display:flex;align-items:center;gap:4px;margin:0;padding:0;min-width:0;background:none;border:0}
.classic-pet-name #classic-pet-selector{display:flex;align-items:center;gap:6px;font:inherit;letter-spacing:inherit;color:inherit;border:0;background:none;padding:0;text-align:left;min-width:0}
.classic-pet-name #classic-pet-selector span{overflow-wrap:anywhere}
.classic-pet-name #classic-pet-selector svg{width:20px;min-width:20px}
.classic-pet-name #add-account-pet{background:none;border:0;color:inherit;min-width:44px;min-height:44px;padding:8px}
.profile:not(.profile-preview) .classic-profile-toolbar{justify-content:flex-end}
#profile-saved-pins{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.saved-profile-card{display:flex;flex-direction:column;align-items:flex-start;text-align:left;gap:6px;padding:14px;min-width:0;margin:0;border:1px solid var(--line);border-radius:16px;background:white;color:var(--teal)}
.saved-profile-card strong{font-size:15px;line-height:1.3;overflow-wrap:anywhere}
.saved-profile-card>span:last-child{font-size:12px;color:var(--muted)}
.saved-profile-glyph svg{width:24px;height:24px}
.preferred-item{display:flex;align-items:center;gap:8px}.preferred-item>[data-preferred-map]{flex:1;min-width:0;text-align:left}
.preferred-actions button,.preferred-heading button{min-width:44px;min-height:44px;padding:10px;display:inline-flex;align-items:center;justify-content:center}
.preferred-actions svg,.preferred-heading button svg{width:20px;height:20px}

.classic-pet-name #classic-pet-selector>span{font:inherit;white-space:normal;overflow:visible;text-overflow:clip}

/* Legacy home controls and community. */
.profile:not(.profile-preview)>.cover{position:relative;padding-top:64px}
.profile:not(.profile-preview)>.cover>.account-profile-action{position:absolute;top:12px;right:14px;display:flex;gap:4px;margin:0}
.profile:not(.profile-preview)>.cover>.account-profile-action button{background:transparent;border:0;color:var(--cloud,#f7f9f6);width:44px;height:44px;padding:10px;display:grid;place-items:center;font-size:0}
.profile:not(.profile-preview)>.cover>.account-profile-action svg{width:24px;height:24px}
#profile-saved-pins{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.saved-profile-card{padding:10px;min-height:110px}.saved-profile-card strong{font-size:14px}.saved-profile-card>span:last-child{font-size:12px}
.preferred-private{display:inline-block;margin-left:8px;font-size:12px;font-weight:500;padding:3px 7px;border-radius:6px;background:#eef2ed;color:#526662}
.legacy-game-scores table{width:100%;border-collapse:collapse;table-layout:fixed}.legacy-game-scores th,.legacy-game-scores td{text-align:right;padding:12px 6px;border-bottom:1px solid var(--line);overflow-wrap:anywhere}.legacy-game-scores th:first-child{text-align:left}.legacy-game-scores thead th{font-size:14px;color:var(--muted)}.legacy-game-scores td{font-size:22px;font-weight:700}.legacy-game-scores td small{display:block;font-size:12px;font-weight:400}.legacy-game-scores .resource-link{display:inline-block;margin-top:14px}
.legacy-community{display:grid;gap:20px;margin-top:20px}.legacy-community .preview-charity,.legacy-community .preview-community-news{background:white;border:1px solid var(--line);border-radius:22px;padding:22px;margin:0}.legacy-community .community-section-label{display:flex;align-items:center;gap:10px}.legacy-community .community-section-label h2{margin:0}.legacy-community .preview-community-news article{margin-top:20px}.legacy-community .preview-community-news h3{margin-bottom:8px}.legacy-community .community-links{display:flex;gap:12px;flex-wrap:wrap;align-items:center}.legacy-community .charity-feature{margin-top:16px}.legacy-community .contributor-panel{margin:0}
@media(min-width:850px){.legacy-community{grid-template-columns:1fr 1fr}.legacy-community #contributor-sections{grid-column:1/-1}}

/* Match both profile controls and keep the legacy home card compact. */
.profile:not(.profile-preview)>.cover>.account-profile-action #edit,
.profile:not(.profile-preview)>.cover>.account-profile-action #profile-account-button{background:transparent;color:#f7f9f6;border:0;box-shadow:none}
.profile:not(.profile-preview)>.cover>.account-profile-action button:hover,
.profile:not(.profile-preview)>.cover>.account-profile-action button:focus-visible{background:#ffffff18}
.profile:not(.profile-preview) .profile-identity-copy{flex:1;min-width:0}
.classic-pet-name .pet-switcher{width:100%;justify-content:flex-start}
.classic-pet-name #classic-pet-selector{flex:1;min-width:0;max-width:100%;width:0}
.classic-pet-name #classic-pet-selector>span{min-width:0;flex:1;line-height:1.15}
.classic-pet-name #classic-pet-selector svg{flex-shrink:0}
.classic-pet-name #add-account-pet{flex:0 0 44px;margin:0}
.profile:not(.profile-preview)>.cover .profile-about-panel{margin-top:14px}
.profile:not(.profile-preview)>.cover .profile-about-panel>p{margin:0}
.profile:not(.profile-preview) .preferred-panel{padding:18px}
.profile:not(.profile-preview) .preferred-panel>h2{margin-bottom:10px}
.profile:not(.profile-preview) .preferred-group{padding:8px 0}
.profile:not(.profile-preview) .preferred-heading{gap:8px;min-height:44px}
.profile:not(.profile-preview) .preferred-heading h3{font-size:16px;line-height:1.3}
.profile:not(.profile-preview) .preferred-heading button{background:transparent;border:0;padding:10px;flex:0 0 44px}
.profile:not(.profile-preview) .preferred-item{margin-top:4px;padding:0 4px 0 10px;border-radius:10px;gap:4px;min-height:48px}
.profile:not(.profile-preview) .preferred-item>[data-preferred-map]{padding:6px 0;min-height:44px;background:transparent;font-size:15px;line-height:1.3}
.profile:not(.profile-preview) .preferred-actions{display:flex;margin:0;flex:0 0 44px;gap:0}
.profile:not(.profile-preview) .preferred-actions button{margin:0;padding:10px;background:transparent;border:0}
.profile:not(.profile-preview) .preferred-group>p{font-size:14px;margin:0 0 4px}
/* Two-column favorites matrix, with each category kept together. */
.profile:not(.profile-preview) #preferred-places{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;align-items:start}
.profile:not(.profile-preview) #preferred-places>.preferred-group{min-width:0;border:1px solid var(--line);border-radius:12px;padding:8px;margin:0}
.profile:not(.profile-preview) .preferred-heading{gap:2px;align-items:flex-start}
.profile:not(.profile-preview) .preferred-heading h3{min-width:0;overflow-wrap:anywhere;padding-top:8px;font-size:14px}
.profile:not(.profile-preview) .preferred-private{margin:4px 0 0;display:table}
.profile:not(.profile-preview) .preferred-item{border:0;border-top:1px solid var(--line);border-radius:0;padding:4px 0 0;gap:0;align-items:flex-start}
.profile:not(.profile-preview) .preferred-item>[data-preferred-map]{font-size:14px}
.profile:not(.profile-preview) .preferred-group>p{padding:4px 0;font-size:13px}
.profile:not(.profile-preview) #preferred-places>p,.profile:not(.profile-preview) #preferred-places>#retry-preferred{grid-column:1/-1}
/* Category bands distinguish the heading from the saved business names. */
.profile:not(.profile-preview) #preferred-places>.preferred-group{padding:0;background:#fff;overflow:hidden}
.profile:not(.profile-preview) .preferred-heading{padding:8px 4px 8px 10px;background:#254734;color:#f7f9f6;align-items:center;min-height:64px}
.profile:not(.profile-preview) .preferred-heading h3{padding:0;color:inherit;font-weight:750;line-height:1.3}
.profile:not(.profile-preview) .preferred-heading small{color:#b5ed58;font-size:12px;white-space:nowrap}
.profile:not(.profile-preview) .preferred-heading button{color:#f7f9f6;margin:0}
.profile:not(.profile-preview) .preferred-heading button:hover,.profile:not(.profile-preview) .preferred-heading button:focus-visible{background:#ffffff20}
.profile:not(.profile-preview) .preferred-private{color:#254734;background:#e8efdf;font-size:12px;padding:2px 6px}
.profile:not(.profile-preview) .preferred-item{padding:6px 2px 6px 10px;margin:0;align-items:center}
.profile:not(.profile-preview) .preferred-item:first-of-type{border-top:0}
.profile:not(.profile-preview) .preferred-item>[data-preferred-map]{line-height:1.4;padding:4px 0}
.profile:not(.profile-preview) .preferred-item>[data-preferred-map] strong{font-weight:550}
.profile:not(.profile-preview) .preferred-actions button{color:#526662}
.profile:not(.profile-preview) .preferred-actions svg{width:16px;height:16px}
.profile:not(.profile-preview) .preferred-group>p{padding:12px 10px;margin:0;font-size:13px}

/* Compact preferred category headers, with selection controls in the body. */
.preferred-selector{display:flex;justify-content:flex-end;padding:2px 6px}
.preferred-selector button{display:flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;padding:8px;background:transparent;color:#254734;border:0}
.preferred-selector button:disabled{opacity:.4}
.profile:not(.profile-preview) .preferred-heading{min-height:48px;padding:9px 10px}
.profile:not(.profile-preview) .preferred-heading h3{display:flex;align-items:center;gap:5px;width:100%;font-size:13px;line-height:1.25;overflow-wrap:normal}
.profile:not(.profile-preview) .preferred-heading small{flex:none;margin-left:auto;font-size:12px;white-space:nowrap}
.profile:not(.profile-preview) .preferred-heading .preferred-private{display:inline-flex;flex:none;align-items:center;margin:0 0 0 auto;padding:0;background:transparent;color:#e8efdf}
.profile:not(.profile-preview) .preferred-heading .preferred-private svg{width:15px;height:15px}
.profile:not(.profile-preview) .preferred-selector{border-top:1px solid #e3eae4}
.profile:not(.profile-preview) .preferred-heading+.preferred-selector{border-top:0}
.profile:not(.profile-preview) .preferred-selector button:hover,.profile:not(.profile-preview) .preferred-selector button:focus-visible{background:#edf3e9}

/* Keep legacy community cards in their existing desktop columns. */
.legacy-community-card{background:white;border:1px solid var(--line);border-radius:22px;padding:22px;margin:0 0 22px;position:relative}
.legacy-community-card .community-section-label{display:flex;align-items:center;gap:10px}
.legacy-community-card .community-section-label h2{margin:0}
.legacy-community-card .community-links{display:flex;gap:12px;flex-wrap:wrap;align-items:center}
.legacy-community-card .charity-feature{margin-top:16px}
.legacy-community-card article{margin-top:20px}
.card-critter{display:none}
@media(min-width:851px){
 .profile:not(.profile-preview) .profile-grid{align-items:start}
 .legacy-community-card{padding:22px 22px 58px}
}
@media(min-width:1280px){
 body{background-color:var(--bg);background-image:none;background-position:center top;background-size:cover;background-repeat:no-repeat;background-attachment:fixed}
 #app>.profile,#app>.profile.profile-preview{background:transparent;box-shadow:none}
 #app>.profile>section,#app>.profile>.profile-grid,#app>.profile>.legacy-community,#app>.profile>.preview-stats{position:relative;z-index:2}
 .profile-trail-animals{z-index:1}
 .card-critter.trail-animal{display:block;position:absolute;left:auto;right:10px;top:auto;bottom:0;width:58px;height:58px;transform:none;z-index:1}
 .card-critter .trail-animal-reply{font-size:12px}
}
@media(prefers-contrast:more){body{background-image:none;background-position:center top,center top,center top;background-size:800px 640px,cover,cover;background-repeat:repeat,no-repeat,no-repeat;background-attachment:fixed,fixed,fixed}
}
@media(prefers-contrast:more){body,body:has(#app > .profile){background-image:none}}
@media print{body,body:has(#app > .profile){background-image:none}}

/* Clear the old decorative desktop scene while its replacement is designed. */
@media(min-width:1024px){.profile-trail-animals{display:none!important}}

/* Keep the pet chevron beside its name; add-pet lives with the other card actions. */
.classic-pet-name #classic-pet-selector{flex:0 1 auto;width:auto;max-width:100%;min-height:44px}
.classic-pet-name #classic-pet-selector>span{flex:0 1 auto}
.profile:not(.profile-preview)>.legacy-game-scores{margin-top:22px}
.community-story{display:flow-root}
.community-founder{float:left;width:min(42%,240px);margin:6px 22px 14px 0}
.community-founder img{display:block;width:100%;height:auto;aspect-ratio:1;border-radius:16px}
.community-founder figcaption{font-size:13px;line-height:1.4;color:var(--muted);margin-top:8px}
@media(max-width:600px){.community-founder{float:none;width:min(100%,280px);margin:18px auto 22px;text-align:center}}
.profile .profile-about-panel .immunization-open{display:inline-flex;align-items:center;gap:8px;background:#fff;color:#254734;border:1px solid #d5dfd8;border-radius:22px;font-size:14px;padding:10px 14px;margin-top:4px}
.immunization-open svg{width:18px;height:18px}
#immunization-window{min-width:0}
#immunization-window h2{padding-right:40px}
.immunization-record{border-top:1px solid var(--line);padding:18px 0;overflow-wrap:anywhere}
.immunization-record dl{margin:12px 0}.immunization-record dl>div{display:flex;flex-wrap:wrap;gap:6px 14px;margin:6px 0}.immunization-record dt{font-weight:600}.immunization-record dd{margin:0}
.immunization-notes{white-space:pre-wrap}
.immunization-dates{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
#immunization-form{margin:18px 0;padding:14px;border:1px solid var(--line);border-radius:14px;min-width:0}
#immunization-form input,#immunization-form textarea{min-width:0;width:100%;box-sizing:border-box}
@media(max-width:400px){.immunization-dates{grid-template-columns:1fr}}

/* Compact desktop contributor board below the community card. */
@media(min-width:851px){
 .profile-grid #contributor-sections{min-width:0;margin-bottom:22px}
 .profile-grid #contributor-sections .contributor-panel{padding:20px;margin:0}
 .profile-grid #contributor-sections h2{font-size:22px;line-height:1.3}
 .profile-grid #contributor-sections .contributor-list{margin-bottom:0}
 .profile-grid #contributor-sections .contributor-list li{padding:8px 0;gap:12px}
 .profile-grid #contributor-sections .contributor-list a{overflow-wrap:anywhere;min-width:0}
 .profile-grid #contributor-sections .contributor-list strong{white-space:nowrap}
}
.profile-legal-footer{display:flex;justify-content:center;align-items:center;flex-wrap:wrap;gap:18px 28px;padding:24px 12px 8px;margin-top:24px;border-top:1px solid var(--line);font-size:14px;color:var(--ink)}
.profile-legal-footer nav{display:flex;flex-wrap:wrap;justify-content:center;gap:20px}
.profile-legal-footer a{color:inherit;text-underline-offset:3px}
