/* ==========================================================================
   Alpaca Farms — shared editorial guide styles
   Production path: /alpaca-farm/style/farm-guides.css

   Shared by the five editorial pages under /alpaca-farm/. Page-specific
   styles should extend these patterns without changing the global header,
   directory, or footer components.
   ========================================================================== */

.farm-guide main{
  padding-top:1.25rem;
  overflow:hidden;
}

.guide-breadcrumb{
  margin-bottom:1.5rem;
  font-size:.8125rem;
  color:var(--fleece-silver);
}

.guide-breadcrumb ol{
  display:flex;
  flex-wrap:wrap;
  gap:.35rem .55rem;
  margin:0;
  padding:0;
  list-style:none;
}

.guide-breadcrumb li{
  display:flex;
  align-items:center;
  gap:.55rem;
}

.guide-breadcrumb li:not(:last-child)::after{
  content:"/";
  color:var(--fleece-beige);
}

.guide-breadcrumb a{
  color:var(--fleece-brown);
  text-decoration:none;
}

.guide-breadcrumb a:hover{
  color:var(--indigo);
  text-decoration:underline;
}

.guide-kicker{
  margin:0 0 .65rem;
  font-size:.7rem;
  font-weight:600;
  letter-spacing:.12em;
  text-transform:uppercase;
  color:var(--guide-accent, var(--indigo));
}

.guide-section{
  margin-top:clamp(4.5rem, 9vw, 7rem);
}

.guide-prose{
  max-width:42rem;
}

.guide-prose h2,
.farm-guide .editorial-aside h2,
.farm-guide .states-gateway h2,
.farm-guide .related-guides h2{
  margin:.15rem 0 1rem;
  font-size:clamp(1.65rem, 4vw, 2.35rem);
  line-height:1.15;
}

.guide-prose p{
  color:var(--fleece-brown);
}

.guide-prose p:last-child{
  margin-bottom:0;
}

.guide-image-frame{
  margin:0;
}

.guide-image-frame img{
  width:100%;
  aspect-ratio:3 / 2;
  object-fit:cover;
  border:1px solid var(--fleece-beige);
  box-shadow:var(--shadow-sm);
}

.guide-image-frame figcaption{
  margin-top:.65rem;
  font-size:.78rem;
  line-height:1.5;
  color:var(--fleece-silver);
}

/* Strong route to the complete state directory. */
.states-gateway{
  display:grid;
  grid-template-columns:minmax(0, 1.25fr) minmax(18rem, .75fr);
  gap:clamp(2rem, 6vw, 5rem);
  align-items:center;
  margin-top:clamp(2rem, 5vw, 3.5rem);
  padding:clamp(1.75rem, 5vw, 3.25rem);
  color:#fff;
  background:#284f3c;
  border-left:.4rem solid #d6a64b;
}

.states-gateway__kicker{
  margin:0 0 .65rem;
  font-size:.7rem;
  font-weight:600;
  letter-spacing:.12em;
  text-transform:uppercase;
  color:#f3d68e;
}

.states-gateway h2{
  color:inherit;
}

.states-gateway__copy > p:last-child{
  max-width:38rem;
  margin-bottom:0;
  color:rgba(255,255,255,.82);
}

.states-gateway__actions{
  display:grid;
  gap:1rem;
}

.states-gateway__button{
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:3.2rem;
  padding:.8rem 1.2rem;
  background:#fff;
  border:2px solid #fff;
  color:#284f3c;
  font-weight:600;
  text-align:center;
  text-decoration:none;
  transition:background .2s var(--ease), color .2s var(--ease);
}

.states-gateway__button:hover{
  background:transparent;
  color:#fff;
}

.states-gateway .state-picker,
.states-gateway .state-picker.is-wide{
  width:100%;
  max-width:none;
}

.states-gateway .sp-input{
  min-height:3.2rem;
  background:#f9f7f1;
}

/* Asides are deliberately distinct from farm listings and body sections. */
.editorial-aside{
  --aside-rule:var(--indigo);
  display:grid;
  grid-template-columns:minmax(13rem, .7fr) minmax(0, 1.3fr);
  gap:clamp(1.5rem, 5vw, 3.5rem);
  align-items:center;
  margin-top:clamp(4.5rem, 9vw, 7rem);
  padding:clamp(1.4rem, 4vw, 2.5rem);
  background:var(--fleece-card);
  border-block:1px solid var(--fleece-beige);
  border-left:.4rem solid var(--aside-rule);
}

.editorial-aside--gold{
  --aside-rule:#c58b32;
}

.editorial-aside--sage{
  --aside-rule:#668576;
}

.editorial-aside__image img{
  width:100%;
  aspect-ratio:4 / 3;
  object-fit:cover;
}

.editorial-aside__label{
  margin:0 0 .45rem;
  color:var(--aside-rule);
  font-size:.68rem;
  font-weight:600;
  letter-spacing:.12em;
  text-transform:uppercase;
}

.editorial-aside__content > p:not(.editorial-aside__label){
  max-width:38rem;
  color:var(--fleece-brown);
}

.editorial-aside__link{
  display:inline-block;
  margin-top:.25rem;
  font-weight:600;
}

/* End-of-page links shared by the five guides. */
.related-guides{
  margin-top:clamp(5rem, 10vw, 8rem);
  padding-top:clamp(2.5rem, 5vw, 4rem);
  border-top:1px solid var(--fleece-beige);
}

.related-guides__head{
  max-width:38rem;
  margin-bottom:1.5rem;
}

.related-guides ul{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:1px;
  margin:0;
  padding:1px;
  list-style:none;
  background:var(--fleece-beige);
}

.related-guides li{
  background:var(--fleece-card);
}

.related-guides a{
  display:flex;
  flex-direction:column;
  gap:.35rem;
  height:100%;
  min-height:8rem;
  padding:1.4rem;
  color:var(--fleece-bay);
  text-decoration:none;
  transition:background .2s var(--ease), color .2s var(--ease);
}

.related-guides a::after{
  content:"→";
  margin-top:auto;
  color:var(--indigo);
}

.related-guides a:hover{
  background:var(--fleece-white);
  color:var(--indigo-deep);
}

.related-guides a span{
  font-family:var(--font-display);
  font-size:1.2rem;
  font-weight:600;
  line-height:1.25;
}

.related-guides a small{
  color:var(--fleece-brown);
  font-size:.82rem;
  line-height:1.5;
}

@media (max-width:52rem){
  .states-gateway{
    grid-template-columns:1fr;
  }

  .editorial-aside{
    grid-template-columns:minmax(9rem, .55fr) minmax(0, 1.45fr);
  }

  .related-guides ul{
    grid-template-columns:1fr;
  }

  .related-guides a{
    min-height:0;
  }
}

@media (max-width:38rem){
  .farm-guide main{
    padding-top:.75rem;
  }

  .guide-breadcrumb{
    margin-bottom:1rem;
  }

  .states-gateway{
    margin-inline:1rem;
    width:calc(100% - 2rem);
    padding:1.5rem;
  }

  .editorial-aside{
    grid-template-columns:1fr;
    margin-inline:1rem;
    width:calc(100% - 2rem);
  }

  .editorial-aside__image img{
    aspect-ratio:3 / 2;
  }
}

