
:root {
  --bg: #f5efe7;
  --surface: #fbf7f1;
  --surface-2: #f0e7da;
  --text: #171411;
  --muted: #93887d;
  --line: rgba(23, 20, 17, 0.12);
  --line-strong: rgba(23, 20, 17, 0.22);
  --shadow: 0 18px 45px rgba(33, 25, 17, 0.08);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; }
button, .button { min-height: 48px; }
textarea { resize: vertical; }
.hidden { display: none !important; }
.wrap { width: min(1220px, calc(100% - 40px)); margin: 0 auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 70;
  background: #f5efe7;
  border-bottom: 1px solid var(--line);
}
.header-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: start;
  gap: 24px;
  padding: 18px 0 16px;
}
.brand-lockup {
  display: inline-flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-start;
}
.wordmark {
  font-family: var(--serif);
  font-size: clamp(2.35rem, 3vw, 3.9rem);
  font-weight: 600;
  letter-spacing: 0.14em;
  line-height: 0.88;
  text-transform: uppercase;
  display: block;
}
.wordmark .initial {
  font-size: 1.55em;
  display: inline-block;
  transform: translateY(0.06em);
}
.brand-subtitle {
  display: block;
  font-size: 0.84rem;
  letter-spacing: 0.24em;
  color: #988d82;
  text-transform: uppercase;
  line-height: 1.15;
}
.site-nav {
  justify-self: center;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  align-self: center;
}
.site-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid rgba(23,20,17,0.11);
  border-radius: 999px;
  background: rgba(255,255,255,0.72);
  color: #534c45;
  font-size: 0.95rem;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] {
  background: #ffffff;
  color: #171411;
  transform: translateY(-1px);
}
.nav-toggle {
  display: none;
  justify-self: end;
  border: 1px solid rgba(23,20,17,0.12);
  background: rgba(255,255,255,0.72);
  border-radius: 999px;
  padding: 0 18px;
  color: #534c45;
  min-width: 112px;
}

.home-hero {
  position: relative;
  min-height: 68vh;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.hero-image,
.hero-overlay {
  position: absolute;
  inset: 0;
}
.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  filter: saturate(0.68) brightness(1.14) contrast(0.92);
  z-index: 0;
}
.hero-overlay {
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(245,239,231,0.96) 0%, rgba(245,239,231,0.82) 18%, rgba(245,239,231,0.48) 52%, rgba(245,239,231,0.30) 100%),
    linear-gradient(90deg, rgba(245,239,231,0.92) 0%, rgba(245,239,231,0.76) 36%, rgba(245,239,231,0.40) 72%, rgba(245,239,231,0.22) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: 86px 0 72px;
  max-width: 780px;
}
.hero-kicker,
.eyebrow {
  margin: 0 0 14px;
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #8e8479;
}
.hero-content h1,
.page-hero h1,
.link-card h2,
.section-head h2,
.detail-summary h2,
.filters-topline h2,
.alert-card h3,
.service-card h2,
.sell-card h2,
.admin-card h2,
.manage-card h2,
.table-title {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 0.94;
  margin: 0;
}
.hero-content h1 {
  font-size: clamp(3.2rem, 5.5vw, 5.2rem);
  max-width: 11.2ch;
}
.hero-lede,
.page-lede {
  margin: 18px 0 0;
  font-size: clamp(0.98rem, 1.15vw, 1.08rem);
  color: #514941;
  max-width: 44rem;
}
.hero-cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: inherit;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.button:hover { transform: translateY(-1px); }
.button-dark {
  background: #141210;
  color: #fff;
  border-color: #141210;
}
.button-outline {
  background: rgba(255,255,255,0.48);
}
.button-soft {
  background: #fff;
}

.home-links-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding: 34px 0 60px;
}
.link-card,
.card-surface,
.listing-card,
.detail-panel,
.sell-card,
.service-card,
.manage-card,
.admin-card,
.alert-card,
.filters-panel {
  background: rgba(251,247,241,0.92);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
}
.link-card {
  padding: 28px;
  display: grid;
  gap: 12px;
}
.link-card h2 { font-size: 2.1rem; }
.link-card p:last-child { color: #5e574f; }

.page-hero {
  padding: 54px 0 26px;
}
.page-hero h1 { font-size: clamp(3rem, 6vw, 5rem); max-width: 10.6ch; }
.page-hero-split {
  display: grid;
  grid-template-columns: 1.18fr 0.82fr;
  gap: 24px;
  align-items: start;
}
.page-aside {
  padding: 26px;
}
.page-aside h2,
.service-card h2,
.sell-card h2 { font-size: 2.2rem; }
.page-aside p { color: #57514b; }
.feature-list { margin: 0; padding-left: 18px; color: #5b544d; display: grid; gap: 8px; }

.horses-page-grid {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 24px;
  padding-bottom: 52px;
}
.filters-panel {
  padding: 22px;
  position: sticky;
  top: 128px;
  align-self: start;
}
.filters-topline,
.section-head,
.footer-row,
.inline-actions,
.button-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.filters-topline h2 { font-size: 2rem; }
.stack-form,
.contact-form,
.post-form,
.manage-form,
.admin-edit-form { display: grid; gap: 12px; }
.alert-card { margin-top: 18px; padding: 18px; }
.alert-card h3 { font-size: 1.8rem; }
.results-meta, .muted, .meta, .microcopy, .footer-note { color: var(--muted); }
.listings-panel { min-width: 0; }
.listing-grid {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 22px;
}
.listing-card { overflow: hidden; }
.listing-image { aspect-ratio: 4 / 4.8; background: #e6ddd0; }
.listing-image img { width: 100%; height: 100%; object-fit: cover; }
.listing-body { padding: 22px; display: grid; gap: 12px; }
.listing-topline { display: flex; justify-content: space-between; gap: 10px; }
.listing-tag { color: var(--muted); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.18em; }
.listing-price { font-family: var(--serif); font-size: 2.2rem; line-height: 0.98; }
.listing-card h3 { font-family: var(--serif); font-size: 2rem; margin: 0; font-weight: 600; }

.detail-shell { position: fixed; inset: 0; z-index: 80; }
.detail-backdrop { position: absolute; inset: 0; background: rgba(20, 15, 12, 0.52); backdrop-filter: blur(6px); }
.detail-panel {
  position: absolute;
  right: 24px;
  top: 24px;
  bottom: 24px;
  width: min(1020px, calc(100% - 48px));
  overflow: auto;
  padding: 24px;
}
.detail-layout { display: grid; grid-template-columns: 1.08fr 0.92fr; gap: 24px; }
.detail-gallery,
.detail-summary,
.detail-meta-list,
.contact-card,
.service-card,
.sell-card,
.manage-card,
.admin-card,
.preview-grid,
.pricing-shell { display: grid; gap: 14px; }
.detail-main-photo { aspect-ratio: 4 / 4.2; border-radius: 22px; overflow: hidden; background: #e8ddd1; }
.detail-main-photo img, .thumb-button img, .preview-tile img { width: 100%; height: 100%; object-fit: cover; }
.thumb-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.thumb-button { padding: 0; border: 2px solid transparent; border-radius: 16px; overflow: hidden; aspect-ratio: 1; background: #f4ece1; }
.thumb-button.active { border-color: #b69a74; }
.detail-meta-list, .contact-card { padding: 18px; border-radius: 20px; background: rgba(255,255,255,0.7); border: 1px solid rgba(23,20,17,0.09); }

.service-section,
.sell-section,
.single-form-section { padding: 18px 0 58px; }
.wide-card { padding: 26px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.full-span { grid-column: 1 / -1; }
.pricing-mode-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; }
.input-label, .upload-label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}
.preview-grid { grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); }
.preview-tile { overflow: hidden; border-radius: 16px; border: 1px solid var(--line); background: #fff; }
.preview-tile figcaption { padding: 10px; color: var(--muted); font-size: 0.82rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
input, select, textarea {
  width: 100%;
  padding: 13px 16px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: #fffdf9;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 26px 0 34px;
  background: #f5efe7;
}
.footer-brand {
  font-family: var(--serif);
  font-size: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}
.footer-brand .initial { font-size: 1.24em; }
.footer-nav { display: flex; gap: 14px; flex-wrap: wrap; }
.footer-nav a {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,0.45);
  color: #524a42;
}

.manage-shell, .admin-shell { min-height: 100vh; padding: 46px 0 72px; }
.manage-grid, .admin-grid { display: grid; grid-template-columns: 0.92fr 1.08fr; gap: 24px; }
.manage-card, .admin-card { padding: 22px; }
.table-shell { overflow: auto; border: 1px solid var(--line); border-radius: 20px; background: #fffdf9; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 14px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
tr:last-child td { border-bottom: 0; }
.status-pill { display: inline-flex; align-items: center; border-radius: 999px; padding: 4px 10px; border: 1px solid var(--line); font-size: 0.8rem; }

@media (max-width: 1040px) {
  .home-links-grid,
  .page-hero-split,
  .horses-page-grid,
  .detail-layout,
  .manage-grid,
  .admin-grid,
  .two-col,
  .pricing-mode-grid {
    grid-template-columns: 1fr;
  }
  .filters-panel { position: static; }
}

@media (max-width: 820px) {
  .wrap { width: min(100%, calc(100% - 24px)); }
  .header-row { grid-template-columns: 1fr auto; align-items: start; }
  .site-nav {
    display: none;
    grid-column: 1 / -1;
    justify-self: stretch;
    justify-content: flex-start;
    gap: 10px;
    padding-bottom: 12px;
  }
  .site-nav.open { display: flex; }
  .nav-toggle { display: inline-flex; align-items: center; }
  .home-hero { min-height: 56vh; }
  .hero-content { padding: 44px 0 50px; }
  .hero-content h1 { font-size: clamp(2.8rem, 12vw, 4.3rem); }
  .page-hero h1 { font-size: clamp(2.6rem, 11vw, 3.6rem); }
  .filters-topline, .inline-actions, .footer-row, .button-row { flex-direction: column; align-items: stretch; }
  .detail-panel { left: 12px; right: 12px; top: 12px; bottom: 12px; width: auto; padding: 18px; }
  .thumb-row { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 520px) {
  .header-row { padding: 14px 0 12px; }
  .wordmark { font-size: 1.95rem; letter-spacing: 0.12em; }
  .brand-subtitle { font-size: 0.68rem; letter-spacing: 0.18em; }
  .site-nav a, .footer-nav a, .nav-toggle { width: 100%; justify-content: center; }
  .hero-content h1 { font-size: 2.62rem; max-width: 9.4ch; }
  .hero-lede, .page-lede { font-size: 1rem; }
  .link-card h2, .service-card h2, .sell-card h2, .filters-topline h2 { font-size: 1.8rem; }
  .listing-price { font-size: 1.92rem; }
  .listing-card h3 { font-size: 1.72rem; }
  .thumb-row { grid-template-columns: repeat(2, 1fr); }
}

.inline-actions-triple .button { flex: 1 1 0; }
@media (min-width: 841px) {
  .page-home .header-row { grid-template-columns: auto 1fr auto; }
  .page-home .brand-lockup { max-width: 340px; }
}
@media (max-width: 840px) {
  .brand-subtitle { font-size: 0.82rem; letter-spacing: 0.18em; }
  .hero-content { padding: 58px 0 52px; }
  .hero-content h1 { font-size: clamp(2.85rem, 11vw, 4.1rem); max-width: 8.5ch; }
  .hero-lede { font-size: 0.98rem; max-width: 28rem; }
  .home-hero { min-height: 56vh; }
  .inline-actions-triple { flex-direction: row; }
}
@media (max-width: 640px) {
  .header-row { grid-template-columns: 1fr auto; align-items: start; }
  .site-nav { margin-top: 12px; }
  .brand-lockup { gap: 4px; }
  .wordmark { font-size: 2.2rem; letter-spacing: 0.11em; }
  .wordmark .initial { font-size: 1.42em; }
  .brand-subtitle { font-size: 0.78rem; letter-spacing: 0.16em; }
  .nav-toggle { min-width: 106px; }
  .hero-kicker { margin-bottom: 10px; }
  .hero-content h1 { font-size: 3.2rem; max-width: 8.2ch; }
  .inline-actions-triple { flex-direction: column; }
}

/* Mobile wordmark + header hierarchy fix */
@media (max-width: 640px) {
  .header-row {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    align-items: start !important;
    gap: 14px !important;
  }

  .brand-lockup {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    min-width: 0 !important;
  }

  .wordmark {
    display: block !important;
    white-space: nowrap !important;
    line-height: 0.9 !important;
    letter-spacing: 0.08em !important;
    font-size: clamp(2.1rem, 10vw, 3rem) !important;
  }

  .wordmark .initial {
    font-size: 1.18em !important;
  }

  .brand-subtitle {
    display: block !important;
    margin-top: 8px !important;
    color: #9a9086 !important;
    font-size: 0.72rem !important;
    letter-spacing: 0.16em !important;
    line-height: 1.15 !important;
    max-width: 12rem !important;
  }

  .nav-toggle {
    min-height: 44px !important;
    padding: 0 18px !important;
    font-size: 0.95rem !important;
  }

  .home-hero {
    padding-top: 18px !important;
  }

  .hero-kicker {
    font-size: 0.72rem !important;
    letter-spacing: 0.18em !important;
  }

  .hero-content h1 {
    font-size: clamp(2.6rem, 13vw, 4.2rem) !important;
    line-height: 0.92 !important;
    max-width: 7ch !important;
  }

  .hero-lede {
    font-size: 1rem !important;
    line-height: 1.55 !important;
    max-width: 30rem !important;
  }
}

/* Mobile header / wordmark cleanup */
@media (max-width: 680px) {
  .site-header {
    background: #f4efe8 !important;
  }

  .header-row {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    align-items: start !important;
    gap: 14px !important;
    padding: 18px 0 16px !important;
  }

  .brand-lockup {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    min-width: 0 !important;
  }

  .wordmark {
    display: block !important;
    white-space: nowrap !important;
    line-height: 0.88 !important;
    letter-spacing: 0.04em !important;
    font-size: clamp(2.2rem, 11vw, 3.1rem) !important;
  }

  .wordmark .initial {
    font-size: 1.12em !important;
  }

  .brand-subtitle {
    display: block !important;
    margin-top: 8px !important;
    max-width: none !important;
    color: #9b9186 !important;
    font-size: 0.72rem !important;
    line-height: 1.1 !important;
    letter-spacing: 0.16em !important;
    white-space: normal !important;
  }

  .nav-toggle {
    min-height: 42px !important;
    padding: 0 18px !important;
    border-radius: 999px !important;
    font-size: 0.95rem !important;
  }
}

/* ===== NeedSteed aesthetic refinement pass ===== */

:root {
  --bg: #f6f0e8;
  --surface: #fcf8f3;
  --surface-2: #efe5d8;
  --text: #171411;
  --muted: #8f8478;
  --line: rgba(23, 20, 17, 0.09);
  --line-strong: rgba(23, 20, 17, 0.16);
  --shadow: 0 14px 34px rgba(33, 25, 17, 0.05);
}

/* calmer header */
.site-header {
  background: rgba(246, 240, 232, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(23,20,17,0.06);
}

.header-row {
  padding: 20px 0 18px;
  gap: 18px;
}

/* stronger brand hierarchy */
.brand-lockup {
  gap: 4px;
}

.wordmark {
  font-size: clamp(2.3rem, 3.1vw, 4rem);
  letter-spacing: 0.11em;
  line-height: 0.9;
}

.wordmark .initial {
  font-size: 1.42em;
  transform: translateY(0.04em);
}

.brand-subtitle {
  font-size: 0.68rem;
  letter-spacing: 0.34em;
  color: #9a8d80;
  margin-top: 2px;
}

/* quieter nav pills */
.site-nav {
  gap: 10px;
}

.site-nav a {
  min-height: 38px;
  padding: 0 15px;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  background: rgba(255,255,255,0.55);
  border: 1px solid rgba(23,20,17,0.08);
  color: #5a524a;
  box-shadow: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  background: #171411;
  color: #f6f0e8;
  border-color: #171411;
}

/* more editorial hero */
.home-hero {
  min-height: 72vh;
}

.hero-image {
  filter: saturate(0.62) brightness(1.16) contrast(0.9);
}

.hero-overlay {
  background:
    linear-gradient(180deg, rgba(246,240,232,0.98) 0%, rgba(246,240,232,0.88) 18%, rgba(246,240,232,0.54) 48%, rgba(246,240,232,0.22) 100%),
    linear-gradient(90deg, rgba(246,240,232,0.96) 0%, rgba(246,240,232,0.78) 38%, rgba(246,240,232,0.28) 72%, rgba(246,240,232,0.14) 100%);
}

.hero-content {
  max-width: 720px;
  padding: 96px 0 76px;
}

.hero-kicker {
  font-size: 0.7rem;
  letter-spacing: 0.32em;
  color: #ae8d59;
  margin-bottom: 12px;
}

.hero-content h1 {
  font-size: clamp(3.2rem, 5vw, 5rem);
  line-height: 0.96;
  max-width: 10ch;
  margin-bottom: 0;
}

.hero-lede {
  margin-top: 16px;
  font-size: 1rem;
  line-height: 1.7;
  color: #574f47;
  max-width: 38rem;
}

.hero-cta-row {
  margin-top: 26px;
}

/* homepage cards less chunky */
.home-links-grid {
  padding: 28px 0 56px;
  gap: 18px;
}

.link-card {
  padding: 24px;
  border-radius: 24px;
  box-shadow: 0 10px 26px rgba(33,25,17,0.04);
}

.link-card h2 {
  font-size: 1.9rem;
  line-height: 0.98;
}

.link-card p:last-child {
  font-size: 0.97rem;
  line-height: 1.65;
  color: #5f574f;
}

/* horses page cleaner */
.page-hero {
  padding: 46px 0 20px;
}

.page-hero h1 {
  font-size: clamp(2.8rem, 4.8vw, 4.6rem);
}

.page-lede {
  font-size: 1rem;
  max-width: 42rem;
}

.filters-panel,
.alert-card,
.listing-card,
.link-card,
.detail-panel,
.contact-card,
.detail-meta-list {
  border-color: rgba(23,20,17,0.08);
  box-shadow: 0 10px 28px rgba(33,25,17,0.04);
}

.filters-panel {
  padding: 20px;
}

.filters-topline h2 {
  font-size: 1.7rem;
}

input, select, textarea {
  border-radius: 16px;
  padding: 12px 15px;
  border: 1px solid rgba(23,20,17,0.09);
  background: #fffdf9;
}

.button {
  border-radius: 999px;
}

.button-dark {
  background: #171411;
  border-color: #171411;
}

.button-outline {
  background: rgba(255,255,255,0.68);
}

/* listing cards more premium */
.listing-grid {
  gap: 20px;
}

.listing-image {
  aspect-ratio: 4 / 4.9;
}

.listing-body {
  padding: 20px;
}

.listing-price {
  font-size: 2rem;
}

.listing-card h3 {
  font-size: 1.8rem;
  line-height: 0.98;
}

.listing-tag {
  font-size: 0.68rem;
  letter-spacing: 0.18em;
}

/* footer cleaner */
.site-footer {
  background: #f6f0e8;
  border-top: 1px solid rgba(23,20,17,0.06);
}

.footer-brand {
  font-size: 1.35rem;
  letter-spacing: 0.14em;
}

.footer-note {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* mobile cleanup */
@media (max-width: 820px) {
  .home-hero {
    min-height: 58vh;
  }

  .hero-content {
    padding: 52px 0 50px;
  }

  .hero-content h1 {
    font-size: clamp(2.6rem, 11vw, 4rem);
    max-width: 8ch;
  }

  .hero-lede {
    font-size: 0.98rem;
    line-height: 1.62;
    max-width: 28rem;
  }

  .site-nav a,
  .footer-nav a,
  .nav-toggle {
    font-size: 0.88rem;
  }
}

@media (max-width: 640px) {
  .wordmark {
    font-size: clamp(2rem, 9vw, 2.8rem);
    letter-spacing: 0.06em;
    white-space: nowrap;
  }

  .wordmark .initial {
    font-size: 1.16em;
  }

  .brand-subtitle {
    font-size: 0.64rem;
    letter-spacing: 0.22em;
  }

  .hero-kicker {
    font-size: 0.64rem;
    letter-spacing: 0.24em;
  }

  .hero-content h1 {
    font-size: clamp(2.35rem, 11vw, 3.2rem);
    max-width: 7ch;
  }

  .link-card h2,
  .filters-topline h2,
  .listing-card h3 {
    font-size: 1.6rem;
  }

  .listing-price {
    font-size: 1.72rem;
  }
}

/* Stacked mobile header to prevent first-load overlap */
@media (max-width: 680px) {
  .header-row {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 10px !important;
    padding: 16px 0 14px !important;
  }

  .brand-lockup {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    min-width: 0 !important;
    max-width: 100% !important;
    padding-right: 0 !important;
  }

  .wordmark {
    display: block !important;
    white-space: nowrap !important;
    overflow: visible !important;
    font-size: clamp(2rem, 9vw, 2.8rem) !important;
    line-height: 0.9 !important;
    letter-spacing: 0.06em !important;
  }

  .brand-subtitle {
    display: block !important;
    margin-top: 6px !important;
    max-width: 100% !important;
  }

  .nav-toggle {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    align-self: center !important;
    width: 120px !important;
    min-width: 120px !important;
    margin: 0 !important;
  }

  .site-nav {
    margin-top: 2px !important;
  }
}

/* Mobile-only quick nav instead of big menu pill */
.mobile-quick-nav {
  display: none;
}

@media (max-width: 680px) {
  .nav-toggle {
    display: none !important;
  }

  .mobile-quick-nav {
    display: flex !important;
    justify-content: flex-start;
    gap: 16px;
    padding-top: 2px;
  }

  .mobile-quick-nav a {
    font-size: 0.84rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #6f6458;
    padding: 2px 0;
    border-bottom: 1px solid transparent;
  }

  .mobile-quick-nav a:active,
  .mobile-quick-nav a:hover {
    color: #171411;
    border-bottom-color: rgba(23,20,17,0.25);
  }

  .header-row {
    gap: 6px !important;
    padding: 14px 0 10px !important;
  }

  .brand-lockup {
    margin-bottom: 0 !important;
  }

  .brand-subtitle {
    margin-top: 4px !important;
  }

  .home-hero {
    min-height: auto !important;
  }

  .hero-content {
    padding-top: 28px !important;
  }

  .hero-kicker {
    margin-bottom: 8px !important;
  }

  .hero-content h1 {
    margin-top: 0 !important;
  }
}

/* ===== Mobile homepage refinement ===== */
@media (max-width: 680px) {
  .mobile-quick-nav {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 12px !important;
    padding-top: 2px !important;
    padding-bottom: 0 !important;
  }

  .mobile-quick-nav a,
  .mobile-quick-sep {
    font-size: 0.98rem !important;
    letter-spacing: 0.14em !important;
    text-transform: uppercase !important;
    color: #6f6458 !important;
  }

  .mobile-quick-nav a {
    border-bottom: 1px solid transparent;
    padding: 2px 0;
  }

  .mobile-quick-nav a:active,
  .mobile-quick-nav a:hover {
    color: #171411 !important;
    border-bottom-color: rgba(23,20,17,0.24);
  }

  .header-row {
    gap: 4px !important;
    padding: 12px 0 8px !important;
  }

  .wordmark {
    font-size: clamp(2.4rem, 10.5vw, 3.2rem) !important;
    line-height: 0.9 !important;
    letter-spacing: 0.05em !important;
  }

  .brand-subtitle {
    margin-top: 4px !important;
    font-size: 0.66rem !important;
    letter-spacing: 0.22em !important;
  }

  .home-hero {
    min-height: auto !important;
  }

  .hero-content {
    padding-top: 14px !important;
    padding-bottom: 36px !important;
  }

  .hero-kicker {
    margin-bottom: 6px !important;
    font-size: 0.68rem !important;
    letter-spacing: 0.24em !important;
  }

  .hero-content h1 {
    font-size: clamp(2.15rem, 9.8vw, 3rem) !important;
    line-height: 0.94 !important;
    max-width: 7ch !important;
  }

  .hero-lede {
    margin-top: 12px !important;
    font-size: 0.96rem !important;
    line-height: 1.58 !important;
  }

  .hero-cta-row {
    margin-top: 18px !important;
  }
}

/* ===== Mobile homepage refinement ===== */
@media (max-width: 680px) {
  .mobile-quick-nav {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 12px !important;
    padding-top: 2px !important;
    padding-bottom: 0 !important;
  }

  .mobile-quick-nav a,
  .mobile-quick-sep {
    font-size: 0.98rem !important;
    letter-spacing: 0.14em !important;
    text-transform: uppercase !important;
    color: #6f6458 !important;
  }

  .mobile-quick-nav a {
    border-bottom: 1px solid transparent;
    padding: 2px 0;
  }

  .mobile-quick-nav a:active,
  .mobile-quick-nav a:hover {
    color: #171411 !important;
    border-bottom-color: rgba(23,20,17,0.24);
  }

  .header-row {
    gap: 4px !important;
    padding: 12px 0 8px !important;
  }

  .wordmark {
    font-size: clamp(2.4rem, 10.5vw, 3.2rem) !important;
    line-height: 0.9 !important;
    letter-spacing: 0.05em !important;
  }

  .brand-subtitle {
    margin-top: 4px !important;
    font-size: 0.66rem !important;
    letter-spacing: 0.22em !important;
  }

  .home-hero {
    min-height: auto !important;
  }

  .hero-content {
    padding-top: 14px !important;
    padding-bottom: 36px !important;
  }

  .hero-kicker {
    margin-bottom: 6px !important;
    font-size: 0.68rem !important;
    letter-spacing: 0.24em !important;
  }

  .hero-content h1 {
    font-size: clamp(2.15rem, 9.8vw, 3rem) !important;
    line-height: 0.94 !important;
    max-width: 7ch !important;
  }

  .hero-lede {
    margin-top: 12px !important;
    font-size: 0.96rem !important;
    line-height: 1.58 !important;
  }

  .hero-cta-row {
    margin-top: 18px !important;
  }
}

@media (max-width: 680px) {
  .mobile-quick-nav {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 10px !important;
    padding-top: 2px !important;
    padding-bottom: 0 !important;
  }

  .mobile-quick-nav a {
    font-size: 1rem !important;
    letter-spacing: 0.12em !important;
    text-transform: uppercase !important;
    color: #5f5448 !important;
    padding: 2px 0 !important;
    border-bottom: 1px solid rgba(95,84,72,0.18) !important;
  }

  .mobile-quick-nav a:active,
  .mobile-quick-nav a:hover {
    color: #171411 !important;
    border-bottom-color: rgba(23,20,17,0.35) !important;
  }

  .mobile-quick-sep {
    color: #9b9085 !important;
    font-size: 0.95rem !important;
    line-height: 1 !important;
  }

  .hero-content {
    padding-top: 10px !important;
  }

  .wordmark {
    font-size: clamp(2.55rem, 11vw, 3.35rem) !important;
  }

  .hero-content h1 {
    font-size: clamp(2rem, 9vw, 2.75rem) !important;
  }
}

/* Mobile hero balance refinement */
@media (max-width: 680px) {
  .home-hero {
    min-height: auto !important;
  }

  .hero-content {
    padding-top: 6px !important;
    padding-bottom: 28px !important;
    max-width: 100% !important;
  }

  .hero-kicker {
    margin-bottom: 8px !important;
    font-size: 0.7rem !important;
    letter-spacing: 0.22em !important;
  }

  .hero-content h1 {
    font-size: clamp(1.9rem, 8vw, 2.55rem) !important;
    line-height: 1.02 !important;
    max-width: 8.8ch !important;
    letter-spacing: -0.015em !important;
  }

  .hero-lede {
    margin-top: 14px !important;
    max-width: 19rem !important;
    font-size: 0.95rem !important;
    line-height: 1.5 !important;
  }

  .hero-cta-row {
    margin-top: 16px !important;
  }

  .button.button-dark {
    min-height: 46px !important;
    padding: 0 22px !important;
    font-size: 0.95rem !important;
  }
}

/* Mobile hero balance refinement */
@media (max-width: 680px) {
  .home-hero {
    min-height: auto !important;
  }

  .hero-content {
    padding-top: 6px !important;
    padding-bottom: 28px !important;
    max-width: 100% !important;
  }

  .hero-kicker {
    margin-bottom: 8px !important;
    font-size: 0.7rem !important;
    letter-spacing: 0.22em !important;
  }

  .hero-content h1 {
    font-size: clamp(1.9rem, 8vw, 2.55rem) !important;
    line-height: 1.02 !important;
    max-width: 8.8ch !important;
    letter-spacing: -0.015em !important;
  }

  .hero-lede {
    margin-top: 14px !important;
    max-width: 19rem !important;
    font-size: 0.95rem !important;
    line-height: 1.5 !important;
  }

  .hero-cta-row {
    margin-top: 16px !important;
  }

  .button.button-dark {
    min-height: 46px !important;
    padding: 0 22px !important;
    font-size: 0.95rem !important;
  }
}

/* ===== Final NeedSteed refinement pass ===== */

.seller-privacy-note {
  margin: 0 0 10px;
  font-size: 0.95rem;
  line-height: 1.55;
  color: #5e564d;
  background: rgba(255,255,255,0.55);
  border: 1px solid rgba(23,20,17,0.07);
  border-radius: 16px;
  padding: 14px 16px;
}

body,
input,
select,
textarea,
button {
  font-family: var(--sans);
}

.wordmark,
.brand-subtitle,
.hero-content h1,
.page-hero h1,
.link-card h2,
.section-head h2,
.detail-summary h2,
.filters-topline h2,
.alert-card h3,
.service-card h2,
.sell-card h2,
.admin-card h2,
.manage-card h2,
.table-title,
.listing-price,
.listing-card h3,
.footer-brand {
  font-family: var(--serif);
}

.hero-content h1 {
  max-width: 11ch;
}

.hero-lede,
.page-lede,
.link-card p:last-child,
.listing-body p,
.meta,
.muted,
.microcopy,
.footer-note,
.results-meta {
  font-family: var(--sans);
}

@media (max-width: 680px) {
  .hero-content {
    padding-top: 8px !important;
    padding-bottom: 24px !important;
  }

  .hero-content h1 {
    font-size: clamp(1.95rem, 8.4vw, 2.7rem) !important;
    line-height: 1.02 !important;
    max-width: 8.8ch !important;
  }

  .hero-lede {
    max-width: 19rem !important;
    font-size: 0.94rem !important;
    line-height: 1.5 !important;
  }

  .mobile-quick-nav a,
  .mobile-quick-sep {
    font-size: 1rem !important;
  }

  .wordmark {
    font-size: clamp(2.55rem, 11vw, 3.3rem) !important;
  }
}

/* Mobile quick nav on every page */
.mobile-quick-nav {
  display: none;
}

.seller-intro-card {
  margin-bottom: 18px;
  padding: 18px 18px 16px;
  background: rgba(255,255,255,0.58);
  border: 1px solid rgba(23,20,17,0.08);
  border-radius: 22px;
  box-shadow: 0 10px 26px rgba(33,25,17,0.04);
}

.seller-intro-card h2 {
  margin: 0 0 8px;
  font-family: var(--serif);
  font-size: 1.8rem;
  line-height: 0.98;
  font-weight: 600;
}

.seller-intro-card p:last-child {
  margin: 0;
  color: #5c554d;
  line-height: 1.6;
}

@media (max-width: 680px) {
  .nav-toggle {
    display: none !important;
  }

  .mobile-quick-nav {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 10px !important;
    padding-top: 2px !important;
    padding-bottom: 0 !important;
  }

  .mobile-quick-nav a {
    font-size: 1rem !important;
    letter-spacing: 0.12em !important;
    text-transform: uppercase !important;
    color: #5f5448 !important;
    padding: 2px 0 !important;
    border-bottom: 1px solid rgba(95,84,72,0.18) !important;
  }

  .mobile-quick-nav a:active,
  .mobile-quick-nav a:hover {
    color: #171411 !important;
    border-bottom-color: rgba(23,20,17,0.35) !important;
  }

  .mobile-quick-sep {
    color: #9b9085 !important;
    font-size: 0.95rem !important;
    line-height: 1 !important;
  }

  .header-row {
    gap: 4px !important;
    padding: 12px 0 8px !important;
  }

  .hero-content {
    padding-top: 8px !important;
  }

  .seller-intro-card {
    padding: 16px;
    border-radius: 18px;
  }

  .seller-intro-card h2 {
    font-size: 1.45rem;
  }
}
\n
/* Header spacing refinement */
.brand-subtitle {
  margin-top: 6px !important;
}

.site-nav {
  margin-top: 8px !important;
}

@media (max-width: 680px) {
  .brand-subtitle {
    margin-top: 6px !important;
  }

  .mobile-quick-nav {
    margin-top: 8px !important;
  }

  .header-row {
    gap: 8px !important;
  }
}
\n

/* Final list-page polish */
.page-hero {
  padding-top: 38px !important;
  padding-bottom: 18px !important;
}

.page-hero h1 {
  max-width: 7ch;
  line-height: 0.95;
}

.page-lede {
  max-width: 34rem;
}

.seller-intro-card {
  margin: 10px 0 22px;
  padding: 18px 24px;
  background: rgba(255,255,255,0.58);
  border: 1px solid rgba(23,20,17,0.08);
  border-radius: 28px;
  color: #5c544c;
  box-shadow: 0 8px 20px rgba(33,25,17,0.03);
}

.seller-intro-card p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.55;
}

.seller-intro-card strong {
  color: #171411;
  font-weight: 700;
}

/* Softer desktop nav pills */
.site-nav a {
  border-color: rgba(23,20,17,0.07) !important;
  background: rgba(255,255,255,0.48) !important;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  background: rgba(23,20,17,0.92) !important;
}

/* Slightly more space between subtitle and nav */
.brand-subtitle {
  margin-top: 6px !important;
}

.site-nav {
  margin-top: 10px !important;
}

@media (max-width: 680px) {
  .page-hero {
    padding-top: 24px !important;
    padding-bottom: 12px !important;
  }

  .seller-intro-card {
    margin: 8px 0 18px;
    padding: 16px 18px;
    border-radius: 22px;
  }

  .seller-intro-card p {
    font-size: 0.95rem;
    line-height: 1.5;
  }
}

\n
.footer-nav-meta {
  justify-content: flex-end;
}

.footer-nav-meta a {
  min-height: 36px;
  padding: 0 14px;
  font-size: 0.82rem;
}

.legal-card {
  display: grid;
  gap: 14px;
}

.legal-card p {
  margin: 0;
  color: #5c544c;
  line-height: 1.65;
}

@media (max-width: 680px) {
  .footer-nav-meta {
    justify-content: center;
  }

  .footer-nav-meta a {
    font-size: 0.8rem;
    padding: 0 12px;
  }
}
\n
.checkbox-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 0 4px;
  color: #5c544c;
  font-size: 0.95rem;
}

.checkbox-row input[type="checkbox"] {
  width: 16px;
  height: 16px;
}

pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.84rem;
  line-height: 1.45;
}

details summary {
  cursor: pointer;
  margin-bottom: 8px;
}

#ai-draft-result,
#ai-drafts-list {
  margin-top: 16px;
}

/* Horses filter panel spacing refinement */
.filters-panel h2 {
  margin-bottom: 14px;
}

#filters-form.stack-form {
  gap: 14px;
}

.filters-topline {
  margin-bottom: 8px;
}

/* Horses filter panel spacing refinement */
.filters-panel h2 {
  margin-bottom: 14px;
}

#filters-form.stack-form {
  gap: 14px;
}

.filters-topline {
  margin-bottom: 8px;
}

/* Horses filter panel spacing refinement */
.filters-panel h2 {
  margin-bottom: 14px;
}

#filters-form.stack-form {
  gap: 14px;
}

.filters-topline {
  margin-bottom: 8px;
}

/* Worker: horses filter spacing */
.filters-panel .filters-topline {
  margin-bottom: 18px !important;
}

.filters-panel .filters-topline h2 {
  margin: 0 0 18px 0 !important;
}

.filters-panel #filters-form {
  margin-top: 6px !important;
}

.filters-panel #filters-form > input,
.filters-panel #filters-form > select,
.filters-panel #filters-form > .inline-actions {
  margin-top: 0 !important;
}

.filters-panel #filters-form.stack-form {
  gap: 16px !important;
}

/* Worker horses page: increase space between "Search horses" and first field */
.horses-page-grid .filters-panel .filters-topline {
  margin: 0 0 20px 0 !important;
}

.horses-page-grid .filters-panel .filters-topline h2 {
  margin: 0 !important;
  line-height: 1.1;
}

.horses-page-grid .filters-panel #filters-form {
  margin-top: 10px !important;
}

.horses-page-grid .filters-panel #filters-form.stack-form {
  gap: 16px !important;
}

/* Concierge page typography + spacing refinement */
.page-hero .page-lede,
.page-hero-tight .page-lede,
.concierge-page .page-lede,
.concierge-page p,
.concierge-shell p {
  line-height: 1.45;
}

.concierge-shell .card-surface h2,
.concierge-shell .card-surface h3,
.concierge-shell .alert-card h2,
.concierge-shell .alert-card h3 {
  line-height: 1.12;
  margin-bottom: 14px;
}

.concierge-shell .card-surface p,
.concierge-shell .alert-card p {
  margin-top: 0;
}

.concierge-shell .stack-form {
  gap: 14px;
}

/* Concierge page typography + spacing refinement */
.page-hero .page-lede,
.page-hero-tight .page-lede,
.concierge-page .page-lede,
.concierge-page p,
.concierge-shell p {
  line-height: 1.45;
}

.concierge-shell .card-surface h2,
.concierge-shell .card-surface h3,
.concierge-shell .alert-card h2,
.concierge-shell .alert-card h3 {
  line-height: 1.12;
  margin-bottom: 14px;
}

.concierge-shell .card-surface p,
.concierge-shell .alert-card p {
  margin-top: 0;
}

.concierge-shell .stack-form {
  gap: 14px;
}

/* Concierge page typography + spacing refinement */
.page-hero .page-lede,
.page-hero-tight .page-lede,
.concierge-page .page-lede,
.concierge-page p,
.concierge-shell p {
  line-height: 1.45;
}

.concierge-shell .card-surface h2,
.concierge-shell .card-surface h3,
.concierge-shell .alert-card h2,
.concierge-shell .alert-card h3 {
  line-height: 1.12;
  margin-bottom: 14px;
}

.concierge-shell .card-surface p,
.concierge-shell .alert-card p {
  margin-top: 0;
}

.concierge-shell .stack-form {
  gap: 14px;
}


/* Stronger mobile home hero left alignment */
@media (max-width: 680px) {
  .page-home .home-hero {
    padding-top: 0 !important;
  }

  .page-home .home-hero .wrap.hero-content {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
    box-sizing: border-box !important;
  }

  .page-home .hero-content,
  .page-home .hero-content h1,
  .page-home .hero-kicker,
  .page-home .hero-lede,
  .page-home .hero-cta-row {
    margin-left: 0 !important;
    text-align: left !important;
  }

  .page-home .hero-content h1 {
    max-width: 6.8ch !important;
  }

  .page-home .hero-lede {
    max-width: 16.5rem !important;
  }
}
/* Stronger homepage hero left alignment override for small and medium screens */
@media (max-width: 1100px) {
  .page-home .home-hero .wrap.hero-content {
    width: auto !important;
    max-width: none !important;
    margin-left: 16px !important;
    margin-right: 16px !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    text-align: left !important;
  }

  .page-home .hero-content h1,
  .page-home .hero-lede,
  .page-home .hero-kicker,
  .page-home .hero-cta-row {
    margin-left: 0 !important;
    text-align: left !important;
  }
}

@media (max-width: 680px) {
  .page-home .home-hero .wrap.hero-content {
    margin-left: 12px !important;
    margin-right: 12px !important;
  }
}



/* Homepage hero alignment fix: remove inherited .wrap inset on medium mobile/tablet */
.page-home .home-hero .home-hero-content {
  position: relative;
  z-index: 2;
}

@media (max-width: 1100px) {
  .page-home .home-hero .home-hero-content {
    width: 100% !important;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
    box-sizing: border-box !important;
    text-align: left !important;
  }

  .page-home .home-hero .home-hero-content .hero-kicker,
  .page-home .home-hero .home-hero-content h1,
  .page-home .home-hero .home-hero-content .hero-lede,
  .page-home .home-hero .home-hero-content .hero-cta-row {
    margin-left: 0 !important;
    text-align: left !important;
  }
}

@media (max-width: 680px) {
  .page-home .home-hero .home-hero-content {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }
}

/* Home hero alignment correction: align copy with wordmark, not flush-left */
@media (max-width: 1100px) {
  .page-home .home-hero .hero-content {
    width: auto !important;
    max-width: 34rem !important;
    margin-left: 0 !important;
    margin-right: auto !important;
    padding-left: clamp(12px, 3.5vw, 28px) !important;
    padding-right: 16px !important;
    box-sizing: border-box !important;
    text-align: left !important;
  }

  .page-home .hero-content h1,
  .page-home .hero-kicker,
  .page-home .hero-lede,
  .page-home .hero-cta-row {
    margin-left: 0 !important;
    text-align: left !important;
  }
}

@media (max-width: 680px) {
  .page-home .home-hero .hero-content {
    max-width: 22rem !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  .page-home .hero-content h1 {
    max-width: 7.2ch !important;
  }

  .page-home .hero-lede {
    max-width: 18rem !important;
  }
}
