:root {
  --paper: #f3eee4;
  --cream: #fffaf3;
  --ink: #1f1a14;
  --muted: #5c5348;
  --line: #d7cdb8;
  --green: #2c5a32;
  --green-dark: #1c3b21;
  --green-soft: #e4eedc;
  --gold: #b0893a;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 4rem;
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--green);
}

a:hover {
  color: var(--green-dark);
}

.wrap {
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
}

.narrow {
  width: min(720px, calc(100% - 2rem));
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--paper) 92%, white);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3.5rem;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.brand {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 0.3rem;
  flex-shrink: 0;
}

.footer-brand .brand-mark {
  width: 1.35rem;
  height: 1.35rem;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem 1.1rem;
}

.site-nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.95rem;
}

.site-nav a:hover {
  color: var(--green);
}

.site-nav a.btn-primary,
.site-nav a.btn-primary:hover {
  color: #fff;
}

.site-nav form {
  margin: 0;
}

.site-nav button {
  font: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

.site-nav button:hover {
  color: var(--green);
}

.nav-menu {
  display: none;
}

.nav-toggle {
  list-style: none;
  cursor: pointer;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  min-width: 44px;
}

.nav-toggle::-webkit-details-marker {
  display: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.1rem;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
}

.btn-primary,
.btn-primary:hover {
  background: var(--green);
  color: #fff;
}

.btn-ghost {
  border-color: var(--line);
  color: var(--ink);
  background: transparent;
}

.btn-ghost:hover {
  border-color: var(--green);
  color: var(--green-dark);
}

.btn-nav {
  padding: 0.4rem 0.9rem;
  font-size: 0.9rem;
}

.hero {
  padding: 3rem 0 2.5rem;
  background-color: var(--paper);
}

.split {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

.copy h1,
.copy h2,
.legal h1,
.legal h2,
.copy-only h2,
.closing h2 {
  font-family: var(--serif);
  font-weight: 650;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.copy h1 {
  font-size: clamp(2rem, 4vw, 3.1rem);
  margin: 0.35rem 0 1rem;
}

.copy h2,
.copy-only h2,
.closing h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin: 0 0 1rem;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--green);
  margin: 0;
}

.lede {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 38rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.4rem 0 0;
}

.proof {
  background: var(--green-soft);
  border-block: 1px solid var(--line);
  padding: 1.4rem 0;
}

.proof-grid {
  display: grid;
  gap: 1rem;
}

.proof-grid p {
  margin: 0;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.proof-icon {
  width: 1.5rem;
  height: 1.5rem;
  flex: none;
  color: var(--green);
}

.product {
  padding: 3.5rem 0;
}

.product-alt {
  background: var(--cream);
}

.steps,
.feature-list {
  padding-left: 1.2rem;
}

.steps li,
.feature-list li {
  margin-bottom: 0.85rem;
}

.copy-only {
  padding: 2.75rem 0;
}

.closing {
  padding: 3.5rem 0 4rem;
  text-align: center;
}

.closing .cta-row {
  justify-content: center;
}

.fine-print {
  color: var(--muted);
  font-size: 0.95rem;
}

.a2hs {
  text-align: left;
  display: inline-block;
  color: var(--muted);
  font-size: 0.95rem;
}

.legal {
  padding: 2.5rem 0 4rem;
}

.legal h2 {
  font-size: 1.25rem;
  margin: 1.6rem 0 0.35rem;
}

.terms {
  white-space: pre-wrap;
  font-family: var(--sans);
  font-size: 1.05rem;
  line-height: 1.55;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1.25rem;
  overflow-x: auto;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.25rem 0;
  background: var(--cream);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  align-items: center;
  justify-content: space-between;
}

.footer-brand {
  font-family: var(--serif);
  font-weight: 700;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

@media (max-width: 859px) {
  .footer-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    flex-basis: 100%;
  }
}

.footer-nav a {
  color: var(--ink);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.footer-nav a:hover {
  color: var(--green);
}

.footer-copy,
.footer-credit {
  flex-basis: 100%;
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.slideshow {
  width: 100%;
  max-width: 320px;
  min-width: 0;
  margin-inline: auto;
}

.phone-frame {
  background: #161513;
  border-radius: 2rem;
  padding: 0.7rem 0.65rem 1.1rem;
  box-shadow: 0 18px 40px rgba(31, 26, 20, 0.28);
  touch-action: pan-y;
}

.phone-notch {
  width: 28%;
  height: 8px;
  margin: 0 auto 0.45rem;
  background: #2a2723;
  border-radius: 999px;
}

/* Screenshots from this handset are 923×2000. Every viewer uses that ratio
   so the next still from the same phone fills the frame. */
.phone-screen {
  background: #111;
  border-radius: 1.25rem;
  overflow: hidden;
  aspect-ratio: 923 / 2000;
  position: relative;
}

.slide {
  margin: 0;
  position: absolute;
  inset: 0;
}

.slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  touch-action: pan-y;
  -webkit-user-drag: none;
  user-select: none;
}

.slideshow-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 0.75rem;
}

.slideshow-btn {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--cream);
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
}

.slideshow-dots {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0;
}

.slideshow-dots button {
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  position: relative;
}

.slideshow-dots button::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  background: var(--line);
  transform: translate(-50%, -50%);
}

.slideshow-dots button[aria-current="true"]::before {
  background: var(--green);
}

.slideshow-caption {
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0.4rem 0 0;
}

@media (min-width: 860px) {
  .split {
    grid-template-columns: 1.05fr 0.95fr;
  }

  .proof-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .nav-menu {
    display: none;
  }

  .hero {
    background-image:
      linear-gradient(
        color-mix(in srgb, var(--paper) 82%, transparent),
        color-mix(in srgb, var(--cream) 78%, transparent)
      ),
      url("../img/atmosphere/hero-pasture.263119fd0958.webp");
    background-size: cover;
    background-position: center bottom;
    background-repeat: no-repeat;
  }

  @media (prefers-reduced-data: reduce) {
    .hero {
      background-image: none;
    }
  }
}

@media (max-width: 859px) {
  .site-nav-wide {
    display: none;
  }

  .nav-menu {
    display: block;
    position: relative;
  }

  .nav-menu .site-nav {
    position: absolute;
    right: 0;
    top: calc(100% + 0.4rem);
    flex-direction: column;
    align-items: stretch;
    min-width: 14rem;
    max-height: calc(100dvh - 4.5rem);
    overflow-y: auto;
    padding: 0.85rem;
    background: var(--cream);
    border: 1px solid var(--line);
    border-radius: 0.75rem;
    box-shadow: 0 10px 24px rgba(31, 26, 20, 0.12);
  }

  .nav-menu .site-nav a,
  .nav-menu .site-nav form {
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  .split {
    grid-template-columns: 1fr;
  }

  .proof-grid {
    grid-template-columns: 1fr;
  }

  .phone-notch {
    display: none;
  }

  .phone-frame {
    padding: 0;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
  }

  .phone-screen {
    border-radius: 0;
  }
}

.site-nav a.nav-quiet {
  color: var(--muted);
  font-weight: 500;
}

button.btn {
  font: inherit;
  cursor: pointer;
}

.listing-disclaimer {
  color: var(--muted);
  font-size: 0.95rem;
}

.listing-form label,
.listing-form fieldset,
.place-control {
  display: block;
  margin: 0.75rem 0;
}

.listing-form .place-control[hidden] {
  display: none;
}

.listing-form fieldset[hidden],
.listing-form [data-claim-group][hidden],
.listing-form [data-claim][hidden],
.listing-form [data-weaned-on][hidden] {
  display: none;
}

.listing-map {
  height: 240px;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  background: var(--green-soft);
  border-radius: 0.75rem;
}

@media (min-width: 1024px) {
  .listing-map {
    height: 320px;
  }
}

.cell-hex {
  width: 3rem;
  height: 3rem;
  color: var(--green);
}

.place-line {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.listing-row {
  margin: 0.8rem 0;
}

.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.listing-photos img {
  display: block;
  margin: 0.5rem 0;
  border-radius: 0.5rem;
}

:focus-visible {
  outline: 2px solid var(--green-dark);
  outline-offset: 2px;
}

.marketplace h1 {
  margin-top: 0;
  margin-bottom: 16px;
}

.listing-form label,
.search-form label,
.inquire-form label,
.reply-form label {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.3rem;
  margin: 0.75rem 0;
}

.listing-form label:has(input[type="radio"]),
.listing-form label:has(input[type="checkbox"]),
.search-form label:has(input[type="radio"]),
.search-form label:has(input[type="checkbox"]) {
  flex-direction: row;
  align-items: center;
}

.listing-form input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
.listing-form select,
.listing-form textarea,
.search-form input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
.search-form select,
.search-form textarea,
.inquire-form input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
.inquire-form select,
.inquire-form textarea,
.reply-form input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
.reply-form select,
.reply-form textarea {
  width: 100%;
  min-height: 44px;
  font-size: 16px;
  font-family: var(--sans);
  color: var(--ink);
  background-color: var(--cream);
  border: 1px solid var(--line);
  border-radius: 0.45rem;
  padding: 0.45rem 0.7rem;
}

.listing-form select,
.search-form select,
.inquire-form select,
.reply-form select {
  appearance: none;
  padding-right: 2rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%231f1a14' stroke-width='1.6' d='M1 1.5 6 6.5 11 1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 0.75rem;
}

.listing-form .file-button {
  flex-direction: row;
  align-items: center;
  width: fit-content;
  min-height: 44px;
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 0.45rem;
  background: var(--cream);
}

.listing-form input[type="file"] {
  width: auto;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
}

.listing-form fieldset,
.search-form fieldset {
  border: 1px solid var(--line);
  border-radius: 0.6rem;
  background: var(--cream);
  margin: 1rem 0;
  padding: 0.75rem 1rem 1rem;
}

.listing-form legend,
.search-form legend {
  padding: 0 0.35rem;
}

.listing-form button:disabled {
  color: var(--muted);
}

.listing-form button:not(.btn),
.search-form button:not(.btn),
.inquire-form button:not(.btn),
.reply-form button:not(.btn),
.listing-detail button:not(.btn),
.listing-row button:not(.btn),
.card-link button:not(.btn),
.gallery-thumb {
  font-family: var(--sans);
  font-size: 1rem;
  min-height: 44px;
  background: var(--cream);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 0.45rem;
  padding: 0.4rem 0.8rem;
}

.listing-form .btn-primary,
.search-form .btn-primary,
.inquire-form .btn-primary,
.reply-form .btn-primary {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
}

.price-field {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.price-field input {
  flex: 1;
  min-width: 0;
}

.chip-choices {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.chip-choice {
  border: 1px solid var(--line);
  border-radius: 999px;
  min-height: 44px;
  padding: 0.35rem 0.75rem;
  background: var(--cream);
}

fieldset[data-seller-says] .chip-choice input,
.search-form .chip-choice input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

fieldset[data-seller-says] .chip-choice:has(input:checked),
.search-form .chip-choice:has(input:checked) {
  border-color: var(--green);
  background: var(--green-soft);
  color: var(--green-dark);
}

.char-count,
.field-error {
  margin: 0.2rem 0 0;
}

.char-count {
  color: var(--muted);
}

.field-error {
  color: #7a2e1d;
}

.saved-thumbs {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
}

.saved-thumbs img {
  width: 5rem;
  height: 3.75rem;
  object-fit: cover;
}

.photo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.search-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem 1rem;
}

.search-head h1,
.search-count {
  margin: 0;
}

.search-head-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
}

.search-head-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.search-form {
  position: relative;
  margin: 1rem 0 1.5rem;
  max-width: 100%;
}

.search-form .filter-line {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 0.65rem 0.75rem;
}

.search-form .filter-line + .filter-line,
.search-form .search-meta {
  margin-top: 0.75rem;
}

.search-form .filter-line > label,
.search-form .status-filter {
  flex: 1 1 9rem;
  width: 12rem;
  max-width: 12rem;
  min-width: 0;
  margin: 0;
}

.search-form .filter-line-actions {
  position: relative;
  z-index: 16;
  align-items: center;
}

.search-form .filter-line-actions > .chip-choice,
.search-form .filter-line-actions > .overlay-details,
.search-form .filter-line-actions > .search-pair {
  flex: 0 1 auto;
  width: auto;
  max-width: 100%;
}

.search-form .search-pair {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}

.search-form .search-query {
  flex: 0 1 12rem;
  width: 12rem;
  max-width: 12rem;
  min-width: 0;
  margin: 0;
}

.search-submit {
  flex: 0 0 auto;
  min-height: 44px;
  width: auto;
}

.search-form .field-caption {
  color: var(--ink);
  font-size: 1rem;
}

.search-form .status-filter {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.search-form .status-filter > .status-panel {
  position: relative;
  z-index: 17;
  width: 100%;
  max-width: 100%;
  border-radius: 0.45rem;
  padding: 0 0.7rem;
}

.search-form .status-panel > summary {
  font-weight: 400;
  min-width: 0;
}

.search-form .status-panel > summary span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-form .status-panel > summary::before {
  margin-left: auto;
  transform: rotate(45deg);
}

.search-form .status-panel[open] > summary::before {
  transform: rotate(-135deg);
}

.search-form .status-panel[open] > .overlay-panel {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  width: 100%;
  min-width: 11rem;
  padding: 0.45rem;
}

.search-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.search-form .search-sort {
  flex-direction: row;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  min-width: 0;
}

.search-form .search-sort select {
  width: auto;
  min-width: 9rem;
  max-width: 100%;
}

.search-count {
  margin-right: auto;
}

.search-form .chip-choice {
  margin: 0;
  min-width: 0;
  max-width: 100%;
}

.search-form .place-control {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.5rem;
  margin: 0;
  min-width: 0;
}

.search-form .place-control p,
.search-form .place-control button,
.search-form .place-control label {
  margin: 0;
  min-width: 0;
  max-width: 100%;
}

.search-form .place-control .listing-map,
.search-form .place-control .field-error {
  width: 100%;
}

.search-form .chip-choices {
  min-width: 0;
}

.search-form .chip-choice {
  overflow-wrap: anywhere;
  white-space: normal;
  line-height: 1.3;
  text-align: left;
}

.search-form [data-search-claim][hidden],
.search-form [data-search-claim-group][hidden] {
  display: none;
}

.claim-group-label,
.claim-hint {
  margin: 0;
  color: var(--muted);
}

.claim-group-label {
  font-size: 0.85rem;
  font-weight: 650;
}

.claim-group + .claim-group {
  margin-top: 0.75rem;
}

.search-form .overlay-details {
  position: static;
  width: max-content;
  max-width: 100%;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--cream);
  padding: 0 0.9rem;
}

.search-form .overlay-details[open] {
  border-color: var(--green);
  background: var(--green-soft);
  color: var(--green-dark);
}

.search-form .overlay-details > summary {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 44px;
  cursor: pointer;
  font-weight: 650;
  list-style: none;
}

.search-form .overlay-details > summary::-webkit-details-marker {
  display: none;
}

.search-form .overlay-details > summary::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
  flex: 0 0 auto;
}

.search-form .overlay-details[open] > summary::before {
  transform: rotate(45deg);
}

.search-form .status-filter > .status-panel > summary::before {
  order: 1;
  margin-left: auto;
  transform: rotate(45deg);
}

.search-form .status-filter > .status-panel[open] > summary::before {
  transform: rotate(-135deg);
}

.search-form .overlay-details[open] > .overlay-panel {
  position: absolute;
  z-index: 16;
  top: calc(100% + 0.4rem);
  left: 0;
  background: var(--cream);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 0.6rem;
  box-shadow: 0 14px 32px rgba(31, 26, 20, 0.16);
  padding: 0.85rem 1rem 1rem;
  max-height: min(70vh, 32rem);
  overflow: auto;
}

.search-form .place-panel[open] > .overlay-panel {
  width: min(26rem, 100%);
}

.search-form .seller-says[open] > .overlay-panel {
  right: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(15rem, 100%), 1fr));
  gap: 0.75rem 1.25rem;
  align-items: start;
}

.search-form .seller-says .claim-hint {
  grid-column: 1 / -1;
}

.search-form .seller-says .claim-hint,
.search-form .overlay-panel .claim-group {
  margin: 0;
}

.search-form .overlay-panel .listing-map {
  height: 220px;
}

.search-form .overlay-panel .place-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.search-form .overlay-panel .place-actions button {
  width: auto;
  flex: 0 0 auto;
}

.search-form .overlay-panel .place-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 12rem));
  gap: 0.5rem;
  justify-content: start;
}

.search-form .overlay-panel .place-fields label {
  width: auto;
  min-width: 0;
}

.search-form .form-submit {
  position: static;
}

.card-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  margin-top: 24px;
}

.card-grid.card-grid-mine {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.card-link {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
  color: inherit;
  text-decoration: none;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  overflow: hidden;
  padding-bottom: 0.8rem;
}

.card-link .card-heading,
.card-link .card-price,
.card-link .chips,
.card-link .card-meta,
.card-link .card-place,
.card-link .card-distance {
  padding-inline: 0.8rem;
}

.gallery-frame {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  min-width: 0;
}

.gallery-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-thumb img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

img.card-thumb {
  width: 100%;
  aspect-ratio: 4 / 3;
  height: auto;
  object-fit: cover;
  display: block;
  flex: 0 0 auto;
}

.card-heading {
  font-weight: 650;
}

a.card-heading {
  color: inherit;
  text-decoration: none;
}

.card-with-save {
  position: relative;
}

.card-with-save > form,
.card-with-save > p {
  position: absolute;
  top: 0.45rem;
  right: 0.45rem;
  z-index: 2;
  margin: 0;
  max-width: 42%;
}

.card-save {
  min-height: 32px;
  height: 32px;
  max-width: 100%;
  padding: 0 0.4rem;
  gap: 0.2rem;
  font-size: 0.8rem;
  background: var(--cream);
}

.card-save svg {
  width: 1rem;
  height: 1rem;
  flex: none;
}

.unread-dot {
  display: inline-block;
  width: 0.55rem;
  height: 0.55rem;
  margin-right: 0.35rem;
  border-radius: 50%;
  background: var(--green);
  vertical-align: middle;
}

.inbox-list {
  display: flex;
  flex-direction: column;
  background: var(--cream);
  border: 1px solid var(--line);
}

.inbox-row {
  display: grid;
  grid-template-columns: 0.55rem minmax(0, 1fr) auto;
  column-gap: 0.75rem;
  row-gap: 0.15rem;
  align-items: center;
  width: 100%;
  padding: 0.75rem 0.9rem;
  color: var(--ink);
  text-decoration: none;
}

.inbox-row:hover {
  color: var(--ink);
  text-decoration: none;
}

.inbox-row + .inbox-row {
  border-top: 1px solid var(--line);
}

.inbox-row:has(.inbox-thumb) {
  grid-template-columns: 0.55rem 4.5rem minmax(0, 1fr) auto;
}

.inbox-row .unread-dot {
  grid-column: 1;
  grid-row: 1 / span 3;
  margin-right: 0;
}

.inbox-party,
.inbox-heading,
.inbox-preview {
  grid-column: 2;
  min-width: 0;
}

.inbox-party { grid-row: 1; }
.inbox-heading { grid-row: 2; }
.inbox-preview { grid-row: 3; }

.inbox-row:has(.inbox-thumb) .inbox-party,
.inbox-row:has(.inbox-thumb) .inbox-heading,
.inbox-row:has(.inbox-thumb) .inbox-preview {
  grid-column: 3;
}

.inbox-row time {
  grid-column: 3;
  grid-row: 1 / span 3;
  white-space: nowrap;
}

.inbox-row:has(.inbox-thumb) time {
  grid-column: 4;
}

.inbox-heading {
  font-weight: 650;
}

.inbox-preview {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.inbox-thumb {
  width: 4.5rem;
  aspect-ratio: 4 / 3;
  height: auto;
  object-fit: cover;
  display: block;
  grid-column: 2;
  grid-row: 1 / span 3;
  align-self: center;
}

.species-tile {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  width: 100%;
  background: var(--green-soft);
  color: var(--green-dark);
  font-weight: 650;
}

.species-tile[hidden],
img[hidden] {
  display: none;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.35rem 0;
  padding: 0;
  list-style: none;
}

.chip {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.15rem 0.65rem;
  background: var(--cream);
  font-size: 0.9rem;
}

.listing-detail {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.detail-main,
.detail-aside {
  display: contents;
}

.detail-gallery { order: 1; }
.detail-title { order: 2; }
.detail-description { order: 3; }
.detail-husbandry { order: 4; }
.detail-facts { order: 5; }
.detail-map { order: 6; }
.detail-seller { order: 7; }
.detail-contact { order: 8; }
.detail-share { order: 9; }
.phone-bar { order: 10; }

.detail-gallery,
.detail-title,
.detail-contact,
.detail-seller,
.detail-facts,
.detail-description,
.detail-husbandry,
.detail-map,
.detail-share,
.share-actions,
.share-actions .btn {
  min-width: 0;
}

.detail-heading,
.detail-kicker,
.listing-detail .price,
.detail-contact,
.detail-seller,
.detail-description,
.detail-facts,
.detail-husbandry,
.detail-map,
.detail-share {
  margin-bottom: 0;
}

.detail-title { margin-top: 16px; }
.detail-kicker { margin-top: 16px; }
.listing-detail .price { margin-top: 16px; }
.detail-contact { margin-top: 16px; }
.detail-seller { margin-top: 16px; }
.detail-facts { margin-top: 24px; }
.detail-description { margin-top: 24px; }
.detail-husbandry { margin-top: 24px; }

.detail-husbandry h2 {
  font-size: 0.85rem;
}

.detail-map { margin-top: 24px; }
.detail-share { margin-top: 24px; }

.detail-title {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  column-gap: 12px;
  align-items: start;
}

.detail-heading {
  display: contents;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.detail-title h1,
.detail-heading > :last-child {
  grid-row: 1;
}

.detail-title h1 {
  grid-column: 1;
}

.detail-title > .price {
  grid-column: 2;
  grid-row: 1;
  margin-top: 0;
  white-space: nowrap;
}

.detail-heading > :last-child {
  grid-column: 3;
}

.detail-title > .detail-kicker {
  grid-column: 1 / -1;
  grid-row: 2;
}

.detail-heading h1 {
  margin: 0;
  min-width: 0;
  flex: 1;
  font-size: 1.65rem;
  line-height: 1.15;
}

.detail-heading form {
  margin: 0;
  flex: none;
}

.detail-save {
  min-height: 32px;
  height: 32px;
  padding: 0 0.55rem;
  gap: 0.25rem;
  font-size: 0.85rem;
  background: var(--cream);
}

.detail-save svg {
  width: 1rem;
  height: 1rem;
  flex: none;
}

.detail-kicker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: var(--muted);
}

.listing-detail .price {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.15;
}

.detail-owner-actions {
  display: flex;
  align-items: stretch;
  gap: 12px;
}

.detail-owner-actions > .btn,
.detail-owner-actions > form {
  flex: 1 1 0;
  min-width: 0;
}

.detail-owner-actions form {
  display: flex;
  margin: 0;
}

.detail-owner-actions .btn {
  width: 100%;
  height: 100%;
}

.detail-contact > p > .btn {
  display: flex;
  width: 100%;
}

.detail-contact > details > summary {
  list-style: none;
  width: 100%;
}

.detail-contact > details > summary::-webkit-details-marker {
  display: none;
}

.detail-contact > details > summary::marker {
  content: none;
}

.detail-contact > details[open] > summary,
.detail-contact > details[open] > summary:hover {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.btn-danger,
.btn-danger:hover {
  background: transparent;
  color: #9b2c2c;
  border-color: #9b2c2c;
}

.detail-seller {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
}

.detail-seller p,
.detail-seller .badge,
.detail-seller .seller-initials {
  margin: 0;
}

.detail-seller .seller-initials {
  width: 32px;
  height: 32px;
  flex: none;
}

.detail-seller .seller-bio {
  flex: 1 0 100%;
}

.detail-contact .inquire-form label {
  margin: 8px 0;
}

.share-caption {
  width: 100%;
}

.share-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.share-actions .btn {
  flex: 1 1 6.5rem;
  width: auto;
  min-height: 32px;
  height: 32px;
  padding: 0 0.5rem;
  gap: 0.35rem;
  font-size: 0.85rem;
}

.share-note {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.detail-share [data-copy-link] {
  min-height: 32px;
  height: 32px;
  padding: 0 0.6rem;
  font-size: 0.85rem;
}

.detail-share details {
  margin-top: 8px;
}

.share-actions svg {
  width: 1.25rem;
  height: 1.25rem;
  flex: none;
}

.gallery-strip {
  display: flex;
  max-width: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.gallery-strip::-webkit-scrollbar {
  display: none;
}

.gallery-frame {
  flex: 0 0 100%;
  margin: 0;
  scroll-snap-align: start;
}

.gallery-thumbs {
  display: flex;
  gap: 0.4rem;
  margin-top: 0.45rem;
}

.gallery-thumb {
  width: 4.5rem;
  padding: 0;
  overflow: hidden;
}

.phone-bar,
.form-submit {
  position: sticky;
  bottom: 0;
  z-index: 12;
}

.phone-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  background: var(--green);
  color: #fff;
  border-radius: 0.45rem;
  padding: 0.7rem 1rem;
  font-weight: 650;
}

.listing-form .form-submit,
.search-form .form-submit,
.inquire-form .btn,
.reply-form .btn {
  width: 100%;
}

@media (max-width: 639px) {
  .search-form .filter-line:not(.filter-line-actions) {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .search-form .filter-line:not(.filter-line-actions) > label,
  .search-form .status-filter {
    width: auto;
    max-width: none;
  }

  .search-form .status-filter {
    grid-column: 1 / -1;
  }

  .search-form .search-sort {
    flex: 1 1 auto;
    min-width: 0;
  }

  .search-form .search-sort select {
    min-width: 0;
    width: auto;
    max-width: 100%;
  }
}

@media (min-width: 640px) and (max-width: 1023px) {
  .search-form .filter-line:not(.filter-line-actions) > label,
  .search-form .status-filter {
    flex: 1 1 0;
    width: auto;
    max-width: none;
  }
}

@media (max-width: 359px) {
  .search-form .place-panel[open] > .overlay-panel {
    width: 100%;
  }

  .search-form .overlay-panel .place-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .search-form .overlay-panel .place-actions button,
  .search-form .overlay-panel .place-fields {
    width: 100%;
  }

  .search-form .overlay-panel .place-fields {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (min-width: 1024px) {
  .card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .listing-detail:has(.detail-aside) {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    column-gap: 32px;
    align-items: start;
  }

  .detail-main,
  .detail-aside {
    display: block;
    min-width: 0;
  }

  .detail-aside {
    position: sticky;
    top: 4.5rem;
  }

  .detail-gallery,
  .detail-title,
  .detail-description,
  .detail-facts,
  .detail-husbandry,
  .detail-map,
  .detail-seller,
  .detail-contact,
  .detail-share,
  .phone-bar {
    order: 0;
  }

  .detail-title {
    display: block;
  }

  .listing-detail .detail-title > * + * {
    margin-top: 16px;
  }

  .detail-heading {
    display: flex;
  }

  .detail-gallery,
  .detail-title {
    margin-top: 0;
  }

  .detail-main > * + * {
    margin-top: 24px;
  }

  .detail-aside > * + * {
    margin-top: 16px;
  }

  .phone-bar {
    display: none;
  }

  .share-actions {
    flex-wrap: nowrap;
  }

  .share-actions .btn {
    flex: 1 1 0;
    width: auto;
    min-width: 0;
  }

  .detail-facts dl {
    grid-template-columns: repeat(2, minmax(7rem, max-content) minmax(0, 1fr));
  }

  .search-form .form-submit,
  .listing-form .form-submit,
  .reply-form .btn {
    position: static;
    width: auto;
  }

  .listing-editor .form-actions {
    display: flex;
    justify-content: flex-end;
  }

  form.listing-editor .field-pair {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  form.listing-editor .field-animal {
    display: flex;
    align-items: end;
    gap: 16px;
  }

  form.listing-editor .field-animal .field-quantity {
    width: 120px;
    flex: 0 0 120px;
  }

  form.listing-editor .field-animal .field-breed,
  form.listing-editor .field-animal [data-sex] {
    flex: 1 1 0;
    min-width: 0;
  }
}

@media (min-width: 1280px) {
  .card-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.marketplace .search-form,
.marketplace .card-grid,
.marketplace .filter-chips {
  margin-left: 0;
  padding-left: 0;
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.search-empty {
  text-align: center;
  margin: 32px 0;
}

.detail-facts dl {
  display: grid;
  grid-template-columns: minmax(7rem, max-content) minmax(0, 1fr);
  column-gap: 16px;
  row-gap: 8px;
  margin: 0;
}

.fact-group {
  break-inside: avoid;
}

.fact-group h2 {
  margin: 0 0 8px;
}

.fact-group + .fact-group {
  margin-top: 16px;
}

.detail-facts dt {
  margin: 0;
  color: var(--muted);
}

.detail-facts dd {
  margin: 0;
  font-weight: 600;
}

.detail-map {
  width: 100%;
  margin: 0;
  position: relative;
  z-index: 2;
}

.detail-map .listing-map,
.listing-editor .listing-map {
  width: 100%;
  height: 220px;
}

.seller-initials {
  width: 48px;
  height: 48px;
  margin: 0 0 8px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--green);
  color: #fff;
  font-weight: 650;
}

.badge {
  display: inline-block;
  margin: 8px 0;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
}

.phone-bar[hidden],
.message-banner[hidden] {
  display: none;
}

.message-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin: 16px 0;
  padding: 16px;
  background: var(--green-soft);
  border: 1px solid var(--green);
  border-radius: 0.45rem;
}

.form-summary {
  margin: 0 0 16px;
  padding: 16px;
  border: 1px solid #9b2c2c;
  border-radius: 0.45rem;
  background: #fff6f3;
}

.required-tag {
  margin-left: 8px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.listing-form form.listing-editor {
  min-width: 0;
}

.listing-form form.listing-editor .listing-fields {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.listing-form form.listing-editor .listing-fields > * + * {
  margin-top: 16px;
}

.listing-form form.listing-editor .listing-fields > fieldset {
  margin-top: 24px;
}

.listing-form form.listing-editor .listing-fields > fieldset + * {
  margin-top: 24px;
}

.listing-form form.listing-editor h1,
.listing-form form.listing-editor .form-summary,
.listing-form form.listing-editor label,
.listing-form form.listing-editor fieldset,
.listing-form form.listing-editor .place-control {
  margin-top: 0;
  margin-bottom: 0;
}

.listing-form form.listing-editor fieldset {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.listing-form form.listing-editor .label-line {
  display: flex;
  align-items: baseline;
  gap: 0.2rem;
  flex-wrap: wrap;
}

.listing-form form.listing-editor .label-line.count-line {
  justify-content: space-between;
}

.listing-form form.listing-editor .req {
  color: #9b2c2c;
  font-weight: 700;
  text-decoration: none;
}

.req-note,
.field-help {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.listing-form form.listing-editor .field-pair,
.listing-form form.listing-editor .field-animal {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.listing-form form.listing-editor [data-bred] > * + *,
.listing-form form.listing-editor [data-estimates] > * + *,
.listing-form form.listing-editor [data-pedigree] > * + *,
.listing-form form.listing-editor [data-birth] > * + *,
.listing-form form.listing-editor [data-claim-group] > * + *,
.listing-form form.listing-editor .place-control > * + * {
  margin-top: 16px;
}

.listing-form form.listing-editor .price-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.listing-form form.listing-editor .price-row > label:first-child {
  flex: 1 1 12rem;
  min-width: 0;
  margin: 0;
}

.listing-form form.listing-editor .price-row .field-error {
  flex: 1 1 100%;
}

.listing-form form.listing-editor .saved-thumbs {
  flex-direction: row;
  flex-wrap: wrap;
}

.listing-form form.listing-editor label.photo-drop {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 140px;
  padding: 16px;
  border: 1px dashed var(--line);
  border-radius: 0.75rem;
  background: var(--paper);
  text-align: center;
  cursor: pointer;
}

.listing-form form.listing-editor label.photo-drop input[type="file"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 140px;
  margin: 0;
  padding: 0;
  border: 0;
  opacity: 0;
  cursor: pointer;
}

.photo-cover {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--green-dark);
}

.photo-cover[hidden] {
  display: none;
}

.listing-form form.listing-editor [hidden] {
  display: none;
}

@media (min-width: 1024px) {
  .listing-form form.listing-editor .field-pair {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .listing-form form.listing-editor .field-animal {
    display: flex;
    align-items: end;
    gap: 16px;
  }

  .listing-form form.listing-editor .field-animal .field-quantity {
    width: 120px;
    flex: 0 0 120px;
  }

  .listing-form form.listing-editor .field-animal .field-breed,
  .listing-form form.listing-editor .field-animal [data-sex] {
    flex: 1 1 0;
    min-width: 0;
  }
}

.gallery-frame .species-tile,
.gallery-thumb .species-tile {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.listing-form .is-invalid {
  border-color: #9b2c2c;
}

.saved-photo {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.reply-thread {
  margin: 16px 0 24px;
  padding: 0;
  list-style: none;
}

.reply-bubble {
  overflow-wrap: anywhere;
  max-width: 100%;
  margin: 0 0 16px;
}

.reply-form {
  position: sticky;
  bottom: 0;
  background: var(--paper);
}

body:has(.reply-shell) {
  display: flex;
  flex-direction: column;
}

body:has(.reply-shell) .site-header {
  flex-shrink: 0;
}

body:has(.reply-shell) .site-footer {
  display: none;
}

body:has(.reply-shell) main,
body:has(.reply-shell) .marketplace {
  display: flex;
  flex-direction: column;
}

.reply-shell {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.reply-shell > .reply-header,
.reply-shell > .reply-thread,
.reply-shell > .reply-dock {
  min-width: 0;
}

.reply-header,
.reply-dock {
  flex-shrink: 0;
}

.reply-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.75rem;
}

.reply-header > a {
  display: flex;
  flex: 1;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.6rem;
  min-width: 0;
  overflow-wrap: anywhere;
}

.reply-header img {
  width: 2.75rem;
  height: auto;
  flex-shrink: 0;
}

.reply-header .party-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  flex-basis: 100%;
  max-height: 9rem;
  min-width: 0;
  overflow-y: auto;
}

.reply-header .party-card p,
.reply-header .party-card .seller-initials {
  margin: 0;
}

.reply-header .party-card .seller-initials {
  width: 32px;
  height: 32px;
  flex: none;
}

.reply-header .party-card ul {
  flex: 1 0 100%;
  min-width: 0;
  margin: 0;
}

.reply-shell .reply-thread {
  flex: 1 1 auto;
  margin: 0;
  padding: 0.5rem 0;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}

.reply-shell .reply-thread > li:first-child {
  margin-top: auto;
}

.reply-mine,
.reply-theirs {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  margin: 0 0 0.75rem;
}

.reply-mine {
  align-items: flex-end;
}

.reply-theirs {
  align-items: flex-start;
}

.reply-speaker {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.reply-shell .reply-bubble {
  max-width: 75%;
  width: fit-content;
  margin: 0;
  padding: 0.45rem 0.7rem;
  border-radius: 0.45rem;
  overflow-wrap: anywhere;
}

.reply-mine .reply-bubble {
  background: var(--green);
  color: var(--cream);
}

.reply-theirs .reply-bubble {
  background: var(--cream);
  color: var(--ink);
  border: 1px solid var(--line);
}

.reply-time {
  color: var(--muted);
  font-size: 0.85rem;
}

.reply-shell .reply-form {
  position: static;
}

.reply-compose {
  display: flex;
  flex-direction: row;
  align-items: end;
  gap: 0.5rem;
}

.reply-compose label {
  flex: 1;
  min-width: 0;
  margin-bottom: 0;
}

.reply-shell .reply-form .btn {
  width: auto;
  flex-shrink: 0;
}
