/* Shared navigation and the public marketplace */
#topbar {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.top-inner {
  height: 74px;
  gap: clamp(24px, 3.7vw, 62px);
}
.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  flex: none;
  font-size: 19px;
  font-weight: 700;
  white-space: nowrap;
  letter-spacing: -0.025em;
}
.brand-link img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}
[data-theme='dark'] :is(.brand-link, #splash) img {
  filter: brightness(0) invert(0.96);
}
.desktop-nav {
  align-self: stretch;
  flex: 1;
  gap: clamp(16px, 2.35vw, 34px);
}
.desktop-nav a {
  position: relative;
  height: 100%;
  border-radius: 0;
  padding: 0;
  color: var(--muted);
  font-size: 0.91rem;
  font-weight: 600;
}
.desktop-nav a:hover,
.desktop-nav [aria-current='page'] {
  background: transparent;
  color: var(--ink);
}
.desktop-nav [aria-current='page']::after {
  position: absolute;
  inset: auto 0 -1px;
  height: 2px;
  background: var(--brand);
  content: '';
}
.top-actions {
  gap: 10px;
}
.top-actions .menu-btn {
  position: relative;
  width: 44px;
  height: 44px;
  background: var(--soft);
}
.top-actions .menu-btn:hover,
.top-actions .menu-btn[aria-expanded='true'] {
  background: var(--sky-soft);
}
.header-account .avatar {
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
}
.header-account[aria-current='page'] .avatar {
  border-color: var(--link);
}
.top-actions .menu-btn[data-unread]::after {
  content: '';
  position: absolute;
  top: 7px;
  right: 7px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 2px var(--soft);
}
#mobile-nav {
  display: none;
}

html:has(#vet-help:not([hidden])) {
  --vet-bottom: calc(22px + env(safe-area-inset-bottom, 0px));
  scroll-padding-bottom: calc(var(--vet-bottom) + 58px);
}
@media (760px < width < 900px) {
  html:has(#vet-help:not([hidden])) #footer {
    padding-bottom: calc(var(--vet-bottom) + 54px);
  }
}
#vet-help {
  --vet-edge: max(16px, env(safe-area-inset-right, 0px));
  position: fixed;
  z-index: 12;
  right: var(--vet-edge);
  bottom: var(--vet-bottom, 22px);
}
.vet-launch {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 46px;
  padding-inline: 14px;
  list-style: none;
  border-radius: 999px;
  background: var(--sun);
  color: var(--on-sun);
  box-shadow: 0 4px 12px rgb(20 20 15 / 17%);
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 720;
  -webkit-tap-highlight-color: transparent;
}
.vet-launch::-webkit-details-marker {
  display: none;
}
.vet-launch:hover {
  background: var(--sun-hover);
}
.vet-panel {
  position: absolute;
  right: 0;
  bottom: calc(100% + 9px);
  width: min(332px, calc(100vw - var(--vet-edge) - max(16px, env(safe-area-inset-left, 0px))));
  max-height: calc(100dvh - var(--vet-bottom, 22px) - 66px);
  overflow: auto;
  overscroll-behavior: contain;
  border: 1px solid var(--control-line);
  border-radius: 15px;
  background: var(--surface);
  color: var(--ink);
}
.vet-panel-head {
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 58px;
  padding: 5px 9px 5px 15px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.vet-panel-head h2 {
  font-size: 1.22rem;
}
.vet-panel-body {
  padding: 14px 14px 11px;
}
.vet-message {
  margin-bottom: 10px;
  padding: 10px 12px;
  border-radius: 3px 11px 11px;
  background: var(--soft);
  font-size: 0.9rem;
  line-height: 1.45;
}
.vet-links a {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 7px 9px;
  border-radius: 8px;
  color: var(--link);
  font-size: 0.87rem;
  font-weight: 650;
}
.vet-links a:hover {
  background: var(--soft);
}
@media (prefers-reduced-motion: no-preference) {
  #vet-help[open] .vet-panel {
    animation: open-vet-panel 0.18s ease-out;
  }
  @keyframes open-vet-panel {
    from {
      transform: translateY(5px);
      opacity: 0.8;
    }
  }
}
#splash img {
  width: 84px;
  height: 88px;
  object-fit: contain;
}

.market-mast {
  padding: clamp(34px, 3.5vw, 56px) 0 clamp(23px, 2.4vw, 34px);
  background: var(--sky-soft);
  border-bottom: 1px solid var(--line);
}
.market-inner {
  width: var(--edge);
  margin-inline: auto;
}
.market-body {
  padding-top: 0;
}
.market-intro {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: clamp(24px, 2.7vw, 40px);
}
.market-intro h1 {
  font-size: clamp(37px, 4.65vw, 67px);
  line-height: 1.06;
  letter-spacing: -0.04em;
  font-weight: 700;
  color: var(--ink);
}
.market-intro p {
  padding-bottom: 3px;
  max-width: 32ch;
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.5;
}
.market-fields {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  background: var(--surface);
  border: 1px solid var(--control-line);
  border-radius: 999px;
}
.market-fields:has(input:focus) {
  outline: 2px solid var(--link);
  outline-offset: 1px;
}
.market-query {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 11px;
  padding-inline: 15px;
  color: var(--muted);
}
.market-query input {
  min-width: 0;
  min-height: 52px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  outline: none;
  color: var(--ink);
}
.market-search .market-submit {
  align-self: center;
  width: 44px;
  min-height: 44px;
  margin-inline-end: 4px;
  padding: 0;
  border-radius: 50%;
}
.marketplace .filter-tags {
  margin-top: 14px;
}
.market-results {
  margin-top: clamp(23px, 2.6vw, 38px);
}
.market-results-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}
.market-results-head h2 {
  font-size: clamp(24px, 2.25vw, 31px);
  font-weight: 700;
}
.market-results-head p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.86rem;
}
.market-results-head .text-link {
  flex: none;
  min-height: 44px;
  font-size: 0.9rem;
}
.pet-card {
  --pet-card-pad: clamp(10px, 1.45vw, 18px);
  --pet-card-action-size: 36px;
  position: relative;
}
.pet-card-link {
  display: grid;
  grid-template-rows: 1fr auto;
  gap: clamp(8px, 1vw, 13px);
  height: 100%;
  padding: var(--pet-card-pad);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--soft);
}
.pet-card .card-photo {
  aspect-ratio: 4 / 3;
  border-radius: clamp(12px, 1.3vw, 16px);
  background: var(--surface);
}
.pet-card .card-info {
  padding: 0;
}
.pet-card .card-info::before {
  content: '';
  float: right;
  width: calc(var(--pet-card-action-size) + 5px);
  height: var(--pet-card-action-size);
}
.pet-card h3 {
  font-size: clamp(15px, 1.45vw, 21px);
  line-height: 1.18;
  letter-spacing: -0.028em;
  overflow-wrap: anywhere;
  font-weight: 700;
}
.pet-card-link:hover h3 {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.pet-card .card-meta {
  margin: 4px 0 0;
  font-size: clamp(0.74rem, 1vw, 0.85rem);
  line-height: 1.25;
  overflow-wrap: anywhere;
}
.pet-card .pet-card-price {
  margin: 6px 0 0;
  color: var(--brand);
  font-size: clamp(0.8rem, 1.08vw, 1rem);
  line-height: 1.22;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.pet-card > .heart {
  top: calc(var(--pet-card-pad) + 1px);
  right: calc(var(--pet-card-pad) + 1px);
  width: var(--pet-card-action-size);
  height: var(--pet-card-action-size);
  background: var(--surface);
  border-color: var(--line);
  color: var(--brand);
}
.pet-card > .heart:is(:hover, .is-saved) {
  background: var(--sky-soft);
}
.pet-card > .heart::after {
  inset: -5px;
}
.community-counts {
  color: var(--muted);
  margin-top: 16px;
  font-size: 0.9rem;
}
.community-counts span {
  margin-inline: 3px;
}

/* First visit */
html[data-route='welcome'] :is(#topbar, #footer, #mobile-nav) {
  display: none;
}
.welcome-page {
  --welcome-ink: #f8faed;
  --welcome-lime: #b5ef62;
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
  background: #0b3129;
  color: var(--welcome-ink);
  display: flex;
  flex-direction: column;
}
.welcome-header,
.welcome-inner {
  width: var(--edge);
  margin-inline: auto;
}
.welcome-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-top: clamp(20px, 4.9vh, 48px);
  position: relative;
  z-index: 2;
}
.welcome-brand img {
  width: clamp(61px, 6.6vw, 97px);
  height: auto;
}
.welcome-account {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  color: var(--welcome-ink);
  font-size: 0.9rem;
  font-weight: 600;
}
.welcome-account:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.welcome-page a:focus-visible {
  outline: 2px solid var(--welcome-lime);
  outline-offset: 5px;
}
.welcome-inner {
  flex: 1;
  display: flex;
  align-items: center;
  padding-block: 30px 10vh;
}
.welcome-copy {
  max-width: min(66%, 660px);
  position: relative;
  z-index: 1;
}
.welcome-copy h1 {
  font-size: clamp(48px, 6.2vw, 94px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.033em;
}
.welcome-copy p {
  font-size: clamp(17px, 1.6vw, 21px);
  line-height: 1.5;
  color: #e0eddd;
  max-width: 36ch;
  margin: 18px 0 25px;
}
.welcome-copy .welcome-enter {
  gap: 14px;
  padding: 6px 6px 6px 18px;
  border-radius: 30px;
  min-height: 54px;
  border: 0;
  background: var(--welcome-lime);
  color: #142c20;
  touch-action: pan-y;
  user-select: none;
}
.welcome-copy .welcome-enter:hover {
  background: #c6f688;
}
.welcome-arrow {
  width: 39px;
  height: 39px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #f8faf5;
  color: #293e34;
  transform: translateX(var(--swipe-offset, 0px));
}
.welcome-enter:active .welcome-arrow {
  transform: translateX(var(--swipe-offset, 0px)) scale(0.94);
}
.welcome-art {
  position: absolute;
  inset: 0 0 0 38%;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.welcome-art::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, #092b23ed, #092b23bd 10%, transparent 29%, transparent 54%, #0b3129),
    #0b4238 url('../assets/brand/sage-canopy.webp') center 12% / cover no-repeat;
  filter: hue-rotate(13deg) saturate(1.04);
  mask-image: linear-gradient(to right, transparent, #000 52%);
}
.welcome-bird {
  --bird-height: min(73svh, 650px, 45vw);
  position: absolute;
  left: calc(max(74%, 100% - 0.6 * var(--bird-height)) + clamp(36px, 3.2vw, 54px));
  top: 15%;
  width: auto;
  max-width: none;
  height: var(--bird-height);
  aspect-ratio: 3 / 2;
  /* Keep the perch anchored as the branch runs past the edge of the screen. */
  translate: -56.5% 0;
}
.welcome-bird img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.welcome-eye {
  position: absolute;
  /* Match the eye ring on the 1440 × 960 cockatoo illustration. */
  left: 49.22%;
  top: 18%;
  width: 2.27%;
  height: 3.54%;
  clip-path: ellipse(50% 48%);
}
.welcome-eyelid {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(#c9d0ca, #a9b5b0 50%, #81938f 68%, #aeb9b5 72%);
  transform: scaleY(0);
  transform-origin: center top;
}
.welcome-light {
  position: absolute;
  top: 13%;
  right: 8%;
  width: min(54%, 440px);
  aspect-ratio: 1;
  background: radial-gradient(ellipse at 50% 40%, #eaffb65e, #9bff4c1f 40%, transparent 69%);
  opacity: 0.3;
}
@media (prefers-reduced-motion: reduce) {
  .welcome-eyelid {
    visibility: hidden;
  }
  .welcome-light {
    transform: none !important;
    opacity: 0.3 !important;
  }
}

@media (min-width: 761px) and (max-width: 1100px) {
  .welcome-copy p {
    max-width: 30ch;
  }
  .welcome-art::before {
    mask-image: linear-gradient(to right, transparent 15%, #000 69%);
  }
}

/* Photo gallery and listing */
.listing-page {
  max-width: 1232px;
  padding-top: 23px;
}
.listing-path {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  margin-bottom: 13px;
  color: var(--muted);
  font-size: 0.9rem;
}
.listing-path .back {
  margin: 0;
  font-size: inherit;
}
.listing-path > a:not(.back):hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.listing-options {
  margin-left: auto;
}
.listing-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.32fr) minmax(0, 1fr);
  grid-template-areas: 'gallery summary' 'about summary';
  align-items: start;
  gap: 30px clamp(22px, 4vw, 59px);
}
.listing-gallery {
  grid-area: gallery;
  min-width: 0;
}
.listing-photo {
  position: relative;
  width: 100%;
  display: block;
  aspect-ratio: 4 / 3;
  border-radius: var(--round);
  overflow: hidden;
  background: var(--soft);
}
.listing-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.listing-photo > span {
  position: absolute;
  bottom: 11px;
  right: 11px;
  border-radius: 8px;
  width: 40px;
  height: 40px;
  background: var(--glass);
  backdrop-filter: blur(12px);
  color: var(--ink);
  display: grid;
  place-items: center;
}
.listing-gallery .thumb[aria-pressed='true'] {
  border-color: var(--link);
}
.expanded-photo {
  width: 100%;
  height: auto;
  border-radius: 8px;
}
.listing-summary {
  grid-area: summary;
  min-width: 0;
  padding: clamp(21px, 2.8vw, 37px);
  border-radius: var(--round);
  background: var(--surface);
  border: 1px solid var(--line);
}
.listing-summary h1 {
  font-size: clamp(30px, 3.5vw, 50px);
  overflow-wrap: anywhere;
}
.listing-status {
  margin-top: 12px;
}
.listing-price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 5px 9px;
  margin-top: 19px;
  font-size: 0.9rem;
  color: var(--muted);
}
.listing-price strong {
  color: var(--brand);
  font-size: clamp(22px, 2.4vw, 31px);
  line-height: 1.18;
  font-variant-numeric: tabular-nums;
}
.listing-actions {
  display: flex;
  align-items: stretch;
  gap: 8px;
  margin-top: 21px;
}
.listing-actions > :first-child {
  flex: 1;
}
.pet-save.is-saved .icon {
  fill: currentColor;
  color: var(--link);
}
.listing-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 22px;
  column-gap: 16px;
}
.listing-facts > div {
  border-top: 1px solid var(--line);
  padding-block: 11px;
}
.listing-facts dt {
  font-size: 0.81rem;
  color: var(--muted);
}
.listing-facts dd {
  font-weight: 600;
  overflow-wrap: anywhere;
  font-size: 0.94rem;
}
.listing-seller {
  display: flex;
  align-items: center;
  gap: 11px;
  border-top: 1px solid var(--line);
  padding-block: 17px 1px;
}
.listing-seller > span:nth-child(2) {
  flex: 1;
}
.listing-seller small,
.listing-seller strong {
  display: block;
}
.listing-seller:hover strong {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.listing-about {
  grid-area: about;
  max-width: 64ch;
}
.listing-about h2 {
  font-size: clamp(22px, 2.2vw, 29px);
}
.listing-about p {
  margin-top: 9px;
  line-height: 1.62;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.listing-about .listing-date {
  margin-top: 13px;
  color: var(--muted);
  font-size: 0.84rem;
}
.related-pets {
  border-top: 1px solid var(--line);
  margin-top: 37px;
  padding-top: 23px;
}
.listing-menu .menu-row {
  width: 100%;
}
.listing-menu .menu-row .icon {
  margin-left: 0;
}

/* Secondary screens share the same restrained controls and surfaces. */
.auth-page {
  display: block;
  max-width: 515px;
  padding-top: clamp(28px, 5vw, 72px);
}
.auth-form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--round);
  padding: clamp(20px, 4vw, 43px);
}
.auth-form h1,
.admin-main h1 {
  font-size: clamp(32px, 4vw, 50px);
}
.admin-side {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--round);
}
.stats {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--round);
}
.stat {
  background: transparent;
  border-radius: 0;
  border-right: 1px solid var(--line);
}
.stat:last-child {
  border-right: none;
}

@media (max-width: 1000px) {
  .top-inner {
    gap: 23px;
  }
  .desktop-nav {
    gap: 17px;
  }
}
@media (max-width: 760px) {
  :root {
    --gutter: 18px;
    scroll-padding-bottom: calc(82px + env(safe-area-inset-bottom, 0px));
  }
  html:has(#vet-help:not([hidden])) {
    --vet-bottom: calc(17px + env(safe-area-inset-bottom, 0px));
    scroll-padding-bottom: calc(82px + env(safe-area-inset-bottom, 0px));
  }
  html:has(.listing-search-toggle[aria-expanded='true']) #vet-help {
    display: none;
  }
  #vet-help {
    --vet-edge: max(12px, calc((100vw - 564px) / 2), env(safe-area-inset-right, 0px));
  }
  .vet-launch {
    width: 46px;
    padding: 0;
  }
  .vet-launch-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
  .top-inner {
    height: auto;
    min-height: calc(78px + env(safe-area-inset-top, 0px));
    padding-block: calc(10px + env(safe-area-inset-top, 0px)) 10px;
    justify-content: space-between;
    gap: 12px;
  }
  .top-actions {
    gap: clamp(4px, 1.5vw, 9px);
  }
  .brand-link {
    font-size: 18px;
  }
  .brand-link img {
    width: 28px;
    height: 28px;
  }
  .top-inner .desktop-nav,
  .top-actions .header-account {
    display: none;
  }
  .top-actions .listing-search-toggle {
    border: 1px solid var(--glass-edge);
  }
  #mobile-nav {
    position: fixed;
    z-index: 10;
    inset: auto max(12px, env(safe-area-inset-right, 0px))
      calc(9px + env(safe-area-inset-bottom, 0px)) max(12px, env(safe-area-inset-left, 0px));
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    max-width: 510px;
    min-height: 62px;
    margin-inline: auto;
    padding: 4px 6px;
    border: 1px solid var(--glass-edge);
    border-radius: 23px;
    background: var(--glass);
    backdrop-filter: blur(18px);
    box-shadow: 0 6px 25px rgb(0 0 0 / 12%);
  }
  html:has(#vet-help:not([hidden])):not(:has(.listing-search-toggle[aria-expanded='true'])) #mobile-nav {
    right: calc(54px + max(12px, env(safe-area-inset-right, 0px)));
  }
  #mobile-nav :is(a, button) {
    flex-direction: column;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2px;
    color: var(--muted);
    font-size: 0.71rem;
    font-weight: 600;
    min-height: 49px;
    position: relative;
  }
  #mobile-nav .dock-icon {
    display: grid;
    width: 37px;
    height: 28px;
    place-items: center;
    border-radius: 999px;
  }
  #mobile-nav :is([aria-current='page'], [aria-expanded='true']) {
    color: var(--ink);
    font-weight: 700;
  }
  #mobile-nav :is([aria-current='page'], [aria-expanded='true']) .dock-icon {
    background: var(--sun);
    color: var(--on-sun);
  }
  #mobile-nav:has(.dock-search[aria-expanded='true']) a[aria-current='page'] .dock-icon {
    background: transparent;
    color: inherit;
  }
  #mobile-nav :is(a, button):focus-visible {
    outline-offset: -3px;
  }
  #footer {
    padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px));
  }
  #toast {
    bottom: calc(83px + env(safe-area-inset-bottom, 0px));
  }
  .market-mast {
    padding-block: 26px 16px;
  }
  .market-body {
    padding-top: 0;
  }
  .market-intro {
    display: block;
    margin-bottom: 19px;
  }
  .market-intro h1 {
    font-size: clamp(32px, 7.8vw, 48px);
    line-height: 1.12;
  }
  .market-intro p {
    max-width: 34ch;
    margin-top: 7px;
    padding: 0;
    font-size: 0.91rem;
  }
  .market-query {
    gap: 7px;
    padding-inline: 10px 0;
  }
  .market-query input {
    min-height: 48px;
  }
  .market-results {
    margin-top: 18px;
  }
  .market-results-head {
    margin-bottom: 9px;
  }
  .market-results-head h2 {
    font-size: 23px;
  }
  .market-results-head .text-link {
    font-size: 0.81rem;
  }
  .pet-card {
    --pet-card-action-size: 34px;
  }
  .pet-card-link {
    border-radius: 15px;
  }
  .welcome-header {
    padding-top: max(13px, env(safe-area-inset-top, 0px));
    align-items: flex-start;
  }
  .welcome-brand img {
    width: 55px;
    height: auto;
  }
  .welcome-account {
    font-size: 0.83rem;
  }
  .welcome-art {
    inset: 0;
  }
  .welcome-art::before {
    background-image:
      linear-gradient(to bottom, #082a23ed, #082a23bf 10%, transparent 33%, transparent 48%, #082c2780 65%, #082527 93%),
      url('../assets/brand/sage-canopy.webp');
    background-position: center top;
    background-size: cover;
    mask-image: none;
  }
  .welcome-bird {
    top: 23%;
    left: max(52.5%, calc(100% - 28svh));
    height: 48%;
  }
  .welcome-inner {
    box-sizing: border-box;
    align-items: flex-end;
    padding-top: 230px;
    padding-bottom: max(18px, calc(env(safe-area-inset-bottom, 0px) + 10px));
  }
  .welcome-copy {
    width: 100%;
    max-width: 430px;
    margin-inline: auto;
  }
  .welcome-copy h1 {
    font-size: clamp(36px, 10.6vw, 50px);
    letter-spacing: -0.032em;
  }
  .welcome-copy p {
    font-size: 1rem;
    line-height: 1.4;
    margin: 11px 0 17px;
  }
  .welcome-copy .welcome-enter {
    width: 100%;
    min-height: 51px;
    justify-content: space-between;
    font-weight: 700;
  }
  .welcome-arrow {
    width: 37px;
    height: 37px;
  }
  .listing-page {
    padding-top: 8px;
  }
  .listing-path {
    margin-bottom: 5px;
  }
  .listing-layout {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: 'gallery' 'summary' 'about';
    gap: 17px;
  }
  .listing-photo {
    aspect-ratio: 1.43;
  }
  .listing-summary {
    padding: 0;
    border: 0;
    background: transparent;
  }
  .listing-summary h1 {
    font-size: clamp(28px, 7.5vw, 42px);
  }
  .listing-price {
    margin-top: 12px;
  }
  .listing-facts {
    margin-top: 16px;
  }
  .listing-seller {
    border-bottom: 1px solid var(--line);
    padding-block: 12px;
  }
  .listing-actions {
    position: fixed;
    z-index: 11;
    inset: auto 0 0;
    padding: 8px var(--gutter) calc(8px + env(safe-area-inset-bottom, 0px));
    margin: 0;
    background: var(--glass);
    backdrop-filter: blur(18px);
    border-top: 1px solid var(--line);
  }
  html:has(.has-listing-actions) #mobile-nav {
    display: none;
  }
  .listing-actions .pet-save {
    flex: none;
    padding: 0 12px;
  }
  .listing-actions .pet-save span {
    display: none;
  }
  .listing-about {
    padding-top: 2px;
  }
  .related-pets {
    margin-top: 25px;
  }
}
@media (max-width: 760px) and (max-height: 680px) {
  .welcome-bird {
    top: 19%;
    left: max(52.5%, calc(100% - 24svh));
    height: 40%;
  }
}
@media (max-width: 760px) and (min-aspect-ratio: 6/5) {
  .welcome-art::before {
    background-image:
      linear-gradient(90deg, #082a23f2, #082a23e6 37%, #082a2340 68%),
      linear-gradient(to bottom, #082a23ed, #082a23b3 16%, transparent 47%, #082a2373),
      url('../assets/brand/sage-canopy.webp');
  }
  .welcome-bird {
    top: 16%;
    left: max(74%, calc(100% - 29svh));
    height: 53%;
  }
  .welcome-inner {
    align-items: center;
    padding-block: 14px;
  }
  .welcome-copy {
    width: 52%;
    margin-inline: 0;
  }
  .welcome-copy h1 {
    font-size: clamp(30px, 6vw, 44px);
  }
  .welcome-copy .welcome-enter {
    width: auto;
  }
}
@media (max-width: 465px) {
  .market-categories {
    justify-content: space-between;
    gap: 0;
  }
  .market-categories .category {
    padding-inline: 4px;
  }
  .market-categories .category > .icon {
    display: none;
  }
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .stat:nth-child(2n) {
    border-right: 0;
  }
  .stat:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }
}
@media (min-width: 761px) and (max-height: 650px) {
  .welcome-inner {
    padding-bottom: 38px;
  }
  .welcome-copy h1 {
    font-size: clamp(48px, 6.2vw, 68px);
  }
}
