/* BAS Agros — forage category hub.
   This layer deliberately reuses the homepage V3 component system.
   Do not redefine the homepage active-tab gold state here. */

.page-forage-hub {
  background:#050605;
  color:var(--ivory,#f4efdd);
}

.page-forage-hub main {
  overflow:hidden;
  background:#050605;
}

.page-forage-hub .forage-selector-section {
  padding-top:1.25rem!important;
  padding-bottom:clamp(3.2rem,4.5vw,4.8rem)!important;
  background:
    radial-gradient(circle at 78% 18%,rgba(207,157,48,.075),transparent 26rem),
    linear-gradient(180deg,#050605 0%,#080a08 100%)!important;
}

.page-forage-hub .forage-selector-section>.home-wrap {
  width:min(calc(100% - 3rem),96rem)!important;
  max-width:none!important;
}

.forage-breadcrumbs {
  margin:0 0 1.25rem;
  color:rgba(244,239,221,.62);
  font-size:.77rem;
}

.forage-breadcrumbs ol {
  display:flex;
  flex-direction:row!important;
  flex-wrap:wrap;
  align-items:center;
  gap:.45rem;
  margin:0;
  padding:0;
  list-style:none;
}

.forage-breadcrumbs li {
  display:inline-flex;
  align-items:center;
  gap:.45rem;
}

.forage-breadcrumbs li+li::before {
  content:"/";
  color:rgba(232,197,109,.55);
}

.forage-breadcrumbs a {
  min-height:0!important;
  color:rgba(244,239,221,.72);
  line-height:1.4;
  text-decoration:none;
}

.forage-breadcrumbs a:hover,
.forage-breadcrumbs a:focus-visible {
  color:var(--gold-hi,#efc762);
}

.forage-page-heading {
  display:grid;
  grid-template-columns:minmax(0,1.05fr) minmax(18rem,.95fr);
  align-items:end;
  gap:clamp(1.2rem,3vw,3rem);
  margin:0 0 1.4rem;
  padding:0 .15rem;
}

.forage-page-heading .home-kicker {
  grid-column:1/-1;
  margin:0 0 -.3rem!important;
}

.forage-page-heading h1 {
  margin:0;
  max-width:18ch;
  color:#f7f2e8;
  font-size:clamp(2.15rem,3.35vw,4rem);
  line-height:.94;
  letter-spacing:-.045em;
  text-transform:uppercase;
}

.forage-page-heading>p:last-child {
  margin:0 0 .2rem;
  max-width:38rem;
  color:rgba(244,239,221,.58);
  font-size:clamp(.88rem,1.1vw,1rem);
  line-height:1.6;
}

.page-forage-hub .forage-purpose-selector {
  min-height:39rem!important;
}

/* The exact homepage control is retained. Only its category artwork changes. */
.page-forage-hub .forage-purpose-selector .home-purpose-tab>.home-icon {
  display:none!important;
}

.page-forage-hub .forage-purpose-selector .home-purpose-tab {
  grid-template-columns:4.2rem minmax(0,1fr) 1.2rem!important;
  min-height:5.8rem!important;
}

.page-forage-hub .forage-purpose-selector .home-purpose-tab::before {
  content:""!important;
  display:block!important;
  width:3.8rem!important;
  height:3.8rem!important;
  border:1px solid rgba(232,197,109,.24)!important;
  border-radius:.78rem!important;
  background-position:center!important;
  background-size:cover!important;
  background-repeat:no-repeat!important;
  box-shadow:inset 0 1px rgba(255,255,255,.08),0 .35rem .9rem rgba(0,0,0,.2)!important;
}

.page-forage-hub .forage-purpose-selector .home-purpose-tab:nth-child(1)::before {
  background-image:url('../img/home/article-travostoy-720.webp')!important;
}
.page-forage-hub .forage-purpose-selector .home-purpose-tab:nth-child(2)::before {
  background-image:url('../img/home/article-lyutserna-720.webp')!important;
}
.page-forage-hub .forage-purpose-selector .home-purpose-tab:nth-child(3)::before {
  background-image:url('../img/home/ref-forage-640.webp')!important;
}
.page-forage-hub .forage-purpose-selector .home-purpose-tab:nth-child(4)::before {
  background-image:url('../img/home/ref-sorghum-640.webp')!important;
}

.page-forage-hub .forage-purpose-selector .home-purpose-tab.is-active::before {
  filter:brightness(.72) saturate(.82) contrast(1.06) drop-shadow(0 .18rem .35rem rgba(0,0,0,.16))!important;
}

.page-forage-hub .forage-purpose-selector .home-purpose-panels {
  min-height:39rem!important;
}

.page-forage-hub .forage-purpose-selector .home-purpose-panel {
  min-height:39rem!important;
}

.page-forage-hub .forage-purpose-selector .home-purpose-media picture,
.page-forage-hub .forage-purpose-selector .home-purpose-media img {
  width:100%;
  height:100%;
}

.page-forage-hub .forage-purpose-selector .home-purpose-media img {
  object-fit:cover;
}

.page-forage-hub .forage-purpose-selector .home-purpose-shade {
  background:
    linear-gradient(90deg,rgba(4,6,4,.96) 0%,rgba(4,6,4,.82) 31%,rgba(4,6,4,.38) 62%,rgba(4,6,4,.18) 100%),
    linear-gradient(0deg,rgba(3,5,3,.86),transparent 48%)!important;
}

.page-forage-hub .forage-purpose-selector .home-purpose-copy {
  max-width:35rem!important;
}

.page-forage-hub .forage-purpose-selector .home-purpose-copy h3 {
  max-width:11ch;
  font-size:clamp(3rem,5.35vw,5.7rem)!important;
  line-height:.88!important;
  letter-spacing:-.055em!important;
  text-wrap:balance;
}

.page-forage-hub .forage-purpose-selector .home-purpose-copy>p:not(.home-kicker) {
  max-width:35rem;
  font-size:clamp(.95rem,1.25vw,1.15rem)!important;
  line-height:1.48!important;
}

.page-forage-hub .forage-purpose-selector .home-purpose-benefits {
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
}

.page-forage-hub .forage-purpose-selector .home-purpose-benefits li:nth-child(4) {
  display:none!important;
}

/* Popular cultures stays in the homepage crop-showcase material system. */
.page-forage-hub .forage-crops {
  border-top:1px solid rgba(232,197,109,.12);
  border-bottom:1px solid rgba(232,197,109,.12);
}

.page-forage-hub .forage-crops .home-crops-list .home-media {
  position:absolute;
  inset:0;
  z-index:0;
  opacity:.38;
  transition:opacity .45s ease,transform .55s cubic-bezier(.2,.75,.2,1);
}

.page-forage-hub .forage-crops .home-crops-list li {
  position:relative;
  overflow:hidden;
}

.page-forage-hub .forage-crops .home-crops-list a {
  position:relative;
  isolation:isolate;
  overflow:hidden;
}

.page-forage-hub .forage-crops .home-crops-list a::before {
  content:"";
  position:absolute;
  inset:0;
  z-index:1;
  background:linear-gradient(90deg,rgba(5,6,5,.94),rgba(5,6,5,.72) 58%,rgba(5,6,5,.38));
  pointer-events:none;
}

.page-forage-hub .forage-crops .home-crops-list .home-media picture,
.page-forage-hub .forage-crops .home-crops-list .home-media img {
  width:100%;
  height:100%;
}

.page-forage-hub .forage-crops .home-crops-list .home-media img {
  object-fit:cover;
}

.page-forage-hub .forage-crops .home-crops-list a>span,
.page-forage-hub .forage-crops .home-crops-list a>b {
  position:relative;
  z-index:2;
}

.page-forage-hub .forage-crops .home-crops-list a:hover .home-media,
.page-forage-hub .forage-crops .home-crops-list a:focus-visible .home-media {
  opacity:.55;
  transform:scale(1.025);
}

/* Lucerne — one strong editorial scene instead of another flat card section. */
.page-forage-hub .forage-lucerne {
  position:relative;
  padding:0!important;
  background:#050605;
}

.page-forage-hub .forage-lucerne>.home-wrap {
  width:100%!important;
  max-width:none!important;
}

.forage-lucerne-stage {
  position:relative;
  isolation:isolate;
  min-height:clamp(31rem,42vw,43rem);
  overflow:hidden;
  border-top:1px solid rgba(232,197,109,.18);
  border-bottom:1px solid rgba(232,197,109,.18);
}

.forage-lucerne-bg {
  position:absolute;
  inset:0;
  z-index:-3;
}

.forage-lucerne-bg picture,
.forage-lucerne-bg img {
  width:100%;
  height:100%;
}

.forage-lucerne-bg img {
  object-fit:cover;
  object-position:center 52%;
  filter:saturate(.9) contrast(1.04);
}

.forage-lucerne-shade {
  position:absolute;
  inset:0;
  z-index:-2;
  background:
    linear-gradient(90deg,rgba(4,7,4,.97) 0%,rgba(4,7,4,.84) 32%,rgba(4,7,4,.54) 60%,rgba(4,7,4,.32) 100%),
    linear-gradient(0deg,rgba(3,5,3,.88),transparent 50%);
}

.forage-lucerne-stage::after {
  content:"";
  position:absolute;
  inset:0;
  z-index:-1;
  background:radial-gradient(circle at 72% 25%,rgba(223,176,62,.09),transparent 25rem);
  pointer-events:none;
}

.forage-lucerne-copy {
  position:absolute;
  z-index:2;
  top:clamp(3rem,6vw,6rem);
  left:max(3rem,calc((100vw - 90rem)/2));
  width:min(35rem,42vw);
}

.forage-lucerne-copy h2 {
  margin:.45rem 0 .9rem;
  color:#f7f2e8;
  font-size:clamp(2.6rem,4.35vw,4.9rem);
  line-height:.91;
  letter-spacing:-.05em;
  text-transform:uppercase;
}

.forage-lucerne-copy>p:not(.home-kicker) {
  margin:0 0 1.55rem;
  max-width:33rem;
  color:rgba(244,239,221,.72);
  line-height:1.55;
}

.forage-lucerne-products {
  position:absolute;
  right:max(3rem,calc((100vw - 90rem)/2));
  bottom:clamp(2.4rem,4vw,4rem);
  left:calc(50% + 2rem);
  z-index:2;
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:1rem;
}

.forage-lucerne-card {
  position:relative;
  min-height:12.8rem;
  overflow:hidden;
  border:1px solid rgba(232,197,109,.34);
  border-radius:1.05rem;
  background:#0a0c09;
  color:#f4efdd;
  text-decoration:none;
  box-shadow:0 1rem 2.5rem rgba(0,0,0,.24);
  transition:transform .45s cubic-bezier(.2,.75,.2,1),border-color .4s ease,box-shadow .4s ease;
}

.forage-lucerne-card::after {
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(0deg,rgba(4,5,4,.96) 0%,rgba(4,5,4,.72) 32%,rgba(4,5,4,.06) 72%);
}

.forage-lucerne-card-media {
  position:absolute;
  inset:0;
}

.forage-lucerne-card-media picture,
.forage-lucerne-card-media img {
  width:100%;
  height:100%;
}

.forage-lucerne-card-media img {
  object-fit:cover;
}

.forage-lucerne-card>span,
.forage-lucerne-card>b {
  position:absolute;
  z-index:2;
  bottom:1rem;
}

.forage-lucerne-card>span {
  left:1rem;
  right:2.7rem;
  font-weight:800;
  line-height:1.18;
}

.forage-lucerne-card>b {
  right:1rem;
  color:var(--gold-hi,#efc762);
  font-size:1.05rem;
}

.forage-lucerne-card:hover,
.forage-lucerne-card:focus-visible {
  transform:translateY(-3px);
  border-color:rgba(239,199,98,.8);
  box-shadow:0 1.4rem 3rem rgba(0,0,0,.34),0 0 0 1px rgba(239,199,98,.08);
}

.page-forage-hub .forage-guide {
  padding-top:clamp(3.2rem,4.7vw,5rem)!important;
}

/* Task panel: keep the same dark/gold material language as the rest of the hub.
   The homepage quality card has legacy mobile framing rules; neutralize them here
   so the photo remains full-bleed with the same soft corner radius as its card. */
.page-forage-hub .forage-task-panel {
  padding:0!important;
  overflow:hidden!important;
  border:1px solid rgba(232,197,109,.28)!important;
  border-radius:1.45rem!important;
  background:linear-gradient(150deg,#11130f,#080908 76%)!important;
  box-shadow:0 1.4rem 4rem rgba(0,0,0,.24)!important;
}

.page-forage-hub .forage-task-panel .home-quality-media {
  position:absolute!important;
  inset:0!important;
  width:100%!important;
  height:100%!important;
  margin:0!important;
  padding:0!important;
  overflow:hidden!important;
  border:0!important;
  border-radius:inherit!important;
  background:transparent!important;
}

.page-forage-hub .forage-task-panel .home-quality-media picture,
.page-forage-hub .forage-task-panel .home-quality-media img {
  display:block!important;
  width:100%!important;
  height:100%!important;
  margin:0!important;
  border:0!important;
  border-radius:inherit!important;
  object-fit:cover!important;
}

.page-forage-hub .forage-task-panel .home-quality-shade {
  inset:0!important;
  border-radius:inherit!important;
}

.forage-task-links {
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:.75rem;
  margin-top:1rem;
}

.page-forage-hub .forage-faq {
  border-top:1px solid rgba(232,197,109,.1);
}

.page-forage-hub .forage-request {
  border-top:1px solid rgba(232,197,109,.12);
}

@media (max-width:63.99rem) {
  .page-forage-hub .forage-selector-section>.home-wrap {
    width:min(calc(100% - 2rem),50rem)!important;
  }

  .forage-page-heading {
    grid-template-columns:1fr;
    gap:.7rem;
    margin-bottom:1rem;
  }

  .forage-page-heading .home-kicker {
    grid-column:auto;
  }

  .forage-page-heading h1 {
    max-width:20ch;
  }

  .page-forage-hub .forage-purpose-selector {
    min-height:0!important;
  }

  .page-forage-hub .forage-purpose-selector .home-purpose-tab {
    grid-template-columns:3.5rem minmax(0,1fr) 1.1rem!important;
    min-height:5rem!important;
  }

  .page-forage-hub .forage-purpose-selector .home-purpose-tab::before {
    width:3.15rem!important;
    height:3.15rem!important;
  }

  .page-forage-hub .forage-purpose-selector .home-purpose-panels,
  .page-forage-hub .forage-purpose-selector .home-purpose-panel {
    min-height:31rem!important;
  }

  .page-forage-hub .forage-purpose-selector .home-purpose-copy h3 {
    max-width:13ch;
    font-size:clamp(2.45rem,8vw,4.2rem)!important;
  }

  .forage-lucerne-stage {
    min-height:auto;
    padding:3rem 1rem 1.25rem;
  }

  .forage-lucerne-copy {
    position:relative;
    top:auto;
    left:auto;
    width:auto;
    max-width:40rem;
    margin:0 auto 2rem;
  }

  .forage-lucerne-products {
    position:relative;
    right:auto;
    bottom:auto;
    left:auto;
    grid-template-columns:repeat(3,minmax(0,1fr));
    width:min(100%,50rem);
    margin:0 auto;
  }
}

@media (max-width:47.99rem) {
  .page-forage-hub .forage-selector-section {
    padding-top:.8rem!important;
  }

  .page-forage-hub .forage-selector-section>.home-wrap {
    width:calc(100% - 1.25rem)!important;
  }

  .forage-breadcrumbs {
    margin-bottom:.85rem;
    font-size:.7rem;
    line-height:1.4;
  }

  .forage-page-heading {
    margin-bottom:.9rem;
  }

  .forage-page-heading h1 {
    font-size:clamp(1.9rem,9vw,2.75rem);
    line-height:.96;
  }

  .forage-page-heading>p:last-child {
    font-size:.84rem;
    line-height:1.5;
  }

  .page-forage-hub .forage-purpose-selector .home-purpose-nav>p {
    margin-bottom:.85rem!important;
  }

  .page-forage-hub .forage-purpose-selector .home-purpose-tab {
    grid-template-columns:3.05rem minmax(0,1fr) 1rem!important;
    min-height:4.6rem!important;
    padding:.55rem!important;
  }

  .page-forage-hub .forage-purpose-selector .home-purpose-tab::before {
    width:2.75rem!important;
    height:2.75rem!important;
    border-radius:.65rem!important;
  }

  .page-forage-hub .forage-purpose-selector .home-purpose-tab small {
    display:none!important;
  }

  .page-forage-hub .forage-purpose-selector .home-purpose-panels,
  .page-forage-hub .forage-purpose-selector .home-purpose-panel {
    min-height:30rem!important;
  }

  .page-forage-hub .forage-purpose-selector .home-purpose-copy {
    max-width:100%!important;
  }

  .page-forage-hub .forage-purpose-selector .home-purpose-copy h3 {
    max-width:11ch;
    font-size:clamp(2.25rem,12vw,3.45rem)!important;
  }

  .page-forage-hub .forage-purpose-selector .home-purpose-copy>p:not(.home-kicker) {
    max-width:29rem;
    font-size:.86rem!important;
  }

  .page-forage-hub .forage-purpose-selector .home-purpose-benefits {
    grid-template-columns:1fr 1fr!important;
  }

  .page-forage-hub .forage-purpose-selector .home-purpose-benefits li:nth-child(3) {
    display:none!important;
  }

  .forage-lucerne-stage {
    padding-top:2.5rem;
  }

  .forage-lucerne-copy h2 {
    font-size:clamp(2.3rem,10vw,3.3rem);
  }

  .forage-lucerne-products {
    grid-template-columns:1fr;
  }

  .forage-lucerne-card {
    min-height:10rem;
  }
}

@media (prefers-reduced-motion:reduce) {
  .page-forage-hub .forage-crops .home-crops-list .home-media,
  .forage-lucerne-card {
    transition-duration:.01ms!important;
  }
}
