/* Udder Love site tidy (v3)
   Consistent type, spacing and fuller-feeling pages.
   Visual only. Does not change mint.js, the paylink, sale state or Cow #0001 art. */

:root{
  --tidy-ink:#241d19;
  --tidy-green:#173d2c;
  --tidy-lime:#b9ef72;
  --tidy-leaf:#3b8362;
  --tidy-cream:#fff7e7;
  --tidy-mute:#526758;
}

/* ---- shared subpage nav (garden, legal, and any logo-only header) ---- */
.site-nav{
  margin-left:auto;
  display:flex;
  flex-wrap:wrap;
  gap:10px 16px;
  align-items:center;
}
.site-nav a{
  color:#e1eee3;
  text-decoration:none;
  font-size:14px;
  font-weight:700;
  white-space:nowrap;
}
.site-nav a:hover,
.site-nav a:focus-visible{color:#c1ef8f}
@media (max-width:700px){
  header:has(.site-nav){
    flex-wrap:wrap;
    height:auto;
    min-height:66px;
    padding-top:10px;
    padding-bottom:10px;
  }
  .site-nav{margin-left:0;width:100%}
}

/* ---- crumbs and legal body: no default-blue links, fuller measure ---- */
.crumb a,
body.legal-page .crumb a,
body.garden-page .crumb a{
  color:var(--tidy-leaf);
  font-weight:700;
  text-decoration:none;
}
.crumb a:hover,
body.legal-page .crumb a:hover{text-decoration:underline}

body.legal-page .legal{
  max-width:46rem;
  font-size:1.0625rem;
  padding-top:2.25rem;
  padding-bottom:5rem;
}
body.legal-page .legal h1{
  font-size:clamp(2rem,4vw,2.75rem);
  letter-spacing:-.03em;
  margin:0 0 14px;
}
body.legal-page .legal h2{
  font-size:1.25rem;
  margin:32px 0 10px;
}
body.legal-page .legal p,
body.legal-page .legal li{
  line-height:1.75;
  max-width:none;
}
body.legal-page .legal a{color:var(--tidy-leaf);font-weight:700}
body.legal-page footer.legal-foot{
  background:#123c2c;
  color:#d5ead8;
  padding:22px 20px 28px;
  margin-top:0;
}
body.legal-page footer.legal-foot a{color:#c1ef8f}
body.legal-page footer.legal-foot .fine{color:#d5ead8;margin:0}

/* ---- homepage: tighter type on a phone so Elsie and the CTA fit sooner ---- */
#udderRealHome .uh-hero{min-height:0}
#udderRealHome a.uh-cta-adopt,
#udderRealHome a.uh-cta-barn,
#udderRealHome a.uh-cta-herd{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  text-decoration:none;
  border:0;
  border-radius:11px;
  background:#bcf286;
  color:#173a29;
  font-weight:800;
  padding:13px 18px;
  min-height:44px;
}
#udderRealHome a.uh-cta-herd{
  background:transparent;
  box-shadow:inset 0 0 0 2px #b9dcbd;
  color:#fff7e7;
}
#udderRealHome a.uh-cta-adopt:hover,
#udderRealHome a.uh-cta-barn:hover,
#udderRealHome a.uh-cta-herd:hover{transform:translateY(-1px);box-shadow:0 4px 0 #173d2c22}
#udderRealHome a.uh-cta-herd:hover{box-shadow:inset 0 0 0 2px #c1ef8f,0 4px 0 #173d2c22}
#udderRealHome .uh-grid a[href="/collection/"]{
  display:inline-flex;
  align-items:center;
  cursor:pointer;
  border:0;
  border-radius:11px;
  background:#bcf286;
  color:#173a29;
  font-weight:800;
  padding:13px 18px;
  text-decoration:none;
}
#udderMintOffer{max-width:36rem !important}
#udderRealHome .uh-intro{padding:48px 24px 24px}
#udderRealHome .uh-grid{gap:22px;padding:16px 24px 36px}

aside#drawer a.drawer-link-adopt,
aside#drawer a.drawer-link-barn{
  background:#b9ef72;
  color:#173a29;
  font-weight:800;
}
aside#drawer a.drawer-link-adopt:hover,
aside#drawer a.drawer-link-barn:hover{filter:brightness(1.04);color:#173a29}

@media (max-width:850px){
  #udderRealHome .uh-hero{
    padding:28px 18px 72px !important;
    gap:22px;
  }
  #udderRealHome .uh-hero h1{
    font-size:clamp(2rem,9vw,3.25rem);
    margin:14px 0 16px;
    letter-spacing:-.04em;
  }
  #udderRealHome .uh-copy p{font-size:1rem;line-height:1.6}
  #udderMintOffer{padding:16px 16px !important}
  #udderMintOffer .umo-price{font-size:30px}
}

/* ---- What's on the farm: a real page, not a short strip ---- */
#about.inner{
  max-width:52rem;
  padding:48px 24px 80px;
}
#about.inner h1{font-size:clamp(2rem,4vw,3rem);margin:0 0 16px}
#about.inner p{
  font-size:1.125rem;
  line-height:1.7;
  max-width:none;
  margin:0 0 1em;
}
.about-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(min(100%,220px),1fr));
  gap:14px;
  margin:28px 0 8px;
}
.about-grid a{
  display:block;
  background:#fff;
  border:1px solid #d9c9a0;
  border-radius:16px;
  padding:18px 16px;
  text-decoration:none;
  color:#173d2c;
  font-weight:800;
  box-shadow:0 2px 0 #e9dbc5;
}
.about-grid a:hover{background:#e0f5d1;transform:translateY(-2px)}
.about-grid a span{
  display:block;
  margin-top:6px;
  font-weight:600;
  font-size:14px;
  color:var(--tidy-mute);
}

/* ---- cow collection: a little more room in the cards ---- */
#cow-collection.inner{padding:48px 24px 72px}
#cow-collection.inner h1{margin-bottom:10px}
#cow-collection.inner > p{font-size:1.0625rem;max-width:40rem;line-height:1.65}
#cow-collection .collection-jump{
  display:inline-flex;
  margin-top:8px;
  background:#b9ef72;
  color:#173a29;
  font-weight:800;
  text-decoration:none;
  border-radius:11px;
  padding:12px 16px;
}
#cow-collection #cows[hidden]{display:none !important}
.cowgrid{gap:18px}
.cowcard{min-height:200px}

/* ---- My Barn empty state: don't leave a huge blank cream field ---- */
.barn-page .barn-hero{
  min-height:0;
  padding:48px max(5%,28px) 72px !important;
}
.barn-page .barn-hero h1{
  font-size:clamp(2.25rem,5.5vw,4rem);
  margin:16px 0;
}
.barn-page .barn-body{min-height:12rem;padding-top:28px;padding-bottom:72px}
.barn-page #herd:empty{
  display:block;
  margin-top:8px;
  padding:28px 22px;
  background:#fff;
  border:1px dashed #d9c9a0;
  border-radius:16px;
  color:var(--tidy-mute);
  font-size:1.0625rem;
  line-height:1.6;
}
.barn-page #herd:empty::before{
  content:"Connect a TWIX wallet to see your cows here. Or adopt one to start a herd.";
}

/* ---- mint/barn header: keep the section links on a phone ---- */
@media (max-width:700px){
  body.mint-page header,
  body.barn-page header{
    flex-wrap:wrap;
    height:auto;
    min-height:66px;
    padding-top:10px;
    padding-bottom:10px;
  }
  body.mint-page .mint-nav,
  body.barn-page .mint-nav{
    display:flex !important;
    order:3;
    width:100%;
    margin-left:0;
    justify-content:flex-start;
    gap:14px;
    font-size:13px;
  }
}

/* ---- garden: consistent header, a clearer adopt teaser ---- */
body.garden-page .garden-wrap{padding-top:28px;padding-bottom:72px}
body.garden-page .garden-wrap h1{font-size:clamp(2rem,4.5vw,2.85rem)}
body.garden-page .lede{font-size:1.0625rem;max-width:40rem}
body.garden-page .teaser a{color:var(--tidy-green);text-decoration:underline}

/* ---- Farm Board nav: adopt link sits with the others ---- */
.fb-top nav a[href="/mint/"]{color:#c1ef8f}

/* ---- Sheep Dipper header: room for the extra link ---- */
body .sheep-head-links,
.sheep-head-links{
  display:flex;
  align-items:center;
  gap:16px;
}
@media (prefers-reduced-motion:reduce){
  #udderRealHome a.uh-cta-adopt,
  #udderRealHome a.uh-cta-barn,
  #udderRealHome a.uh-cta-herd,
  .about-grid a{transition:none;transform:none}
}

/* Mint thank-you card: keep the static My Barn button easy to see */
.mint-page #toBarn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-size:1.125rem;
  font-weight:800;
  padding:14px 22px;
  min-height:48px;
}
