/* Generated from site/src/styles/components/category-hero.css by wordpress/tools/sync-theme-assets.mjs – edit the source, not this copy. */
/* Sector page hero (components/CategoryHero.astro) – Agriculture, Construction.
   Badge and title come from .hero-caption--page in global.css. */
/* Content sits in flow at the bottom (flex-end). min-height (the prototype
   used a fixed height, which clipped the badge/title on phones < ~650px) lets
   the hero grow when the caption and links need more room. */
.category-hero {
  position: relative; background: var(--dark); overflow: hidden;
  min-height: clamp(420px, 46vw, 640px);
  display: flex; flex-direction: column; justify-content: flex-end;
}

/* Photo layers: cross-fade; each carries its own bottom shade. */
.category-hero__slide { position: absolute; inset: 0; opacity: 0; transition: opacity .6s ease; }
.category-hero__slide.is-active { opacity: 1; }
.category-hero__slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .1) 0%, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, .7) 100%); }
.category-hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }

/* Caption + category links, at the bottom edge above the photos. */
.category-hero__content { position: relative; }
.category-hero .hero-caption { margin-bottom: 28px; }

.category-hero__list {
  list-style: none; margin: 0 var(--gutter); padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 2px;
}
.category-hero__link {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  min-height: 104px; /* 64px + padding: the prototype sized it content-box */
  padding: 20px clamp(16px, 2vw, 28px);
  background: rgba(17, 17, 17, .78); color: var(--white); text-decoration: none;
  font: 700 clamp(1.125rem, 1.5vw, 1.375rem)/1.1 var(--font); letter-spacing: .02em;
  transition: background-color .3s ease;
}
.category-hero__link:hover { color: var(--white); }
.category-hero__link.is-active { background: var(--red); }
.category-hero__link .ext-label { display: block; margin-top: 6px; }
/* The default red ring would vanish against the red active link. */
.category-hero__link:focus-visible { outline-color: var(--white); outline-offset: -6px; }

/* Button to the other sector page, just below the hero (29 Sep 2026). */
.sector-switch { max-width: var(--container-outer); margin-inline: auto; padding: clamp(20px, 2.5vw, 32px) var(--gutter) 0; }
