/* Keep the popup above the following homepage band, without clipping its focus ring. */
.home-hero { overflow: visible; min-height: 540px; z-index: 3; }
.home-hero::before {
  background:
    linear-gradient(180deg, rgba(10, 14, 12, 0.5) 0%, rgba(10, 14, 12, 0.42) 46%, rgba(10, 14, 12, 0.76) 100%),
    linear-gradient(90deg, rgba(10, 14, 12, 0.62) 0%, rgba(10, 14, 12, 0.34) 46%, rgba(10, 14, 12, 0.58) 100%);
}
.home-hero__inner { justify-content: center; }
.home-hero__copy { width: 100%; max-width: 800px; text-align: center; }
.home-hero__inner { padding-top: 34px; padding-bottom: 34px; }
.home-hero .eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border: 2px solid rgba(12, 18, 14, 0.9);
  background: rgba(28, 42, 32, 0.88);
  box-shadow: inset 2px 2px rgba(128, 178, 96, 0.32), inset -2px -2px rgba(4, 8, 6, 0.55), 3px 3px rgba(0, 0, 0, 0.38);
  color: #9fe17d;
  text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.56);
}
.home-hero h1, html[lang="en"] .home-hero h1 { max-width: 800px; margin-right: auto; margin-left: auto; font-size: 3rem; overflow-wrap: anywhere; }
.home-hero__lead { max-width: 660px; margin: 10px auto 0; }
.intent-search { width: min(100%, 780px); margin: 24px auto 0; color: #fff; }
.intent-search [hidden] { display: none !important; }
.intent-search__label { display: block; margin-bottom: 12px; font-size: 1.35rem; font-weight: 700; text-align: center; text-shadow: 3px 3px 0 rgba(0, 0, 0, 0.58); }
.intent-search__filters { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 12px; max-width: 560px; margin: 0 auto 14px; }
.intent-search__filters label { display: grid; gap: 4px; font-size: .8rem; color: #fff; }
.intent-search__filters select { width: 100%; min-width: 0; height: 44px; padding: 6px 28px 6px 10px; border: 1px solid #97a39d; border-radius: 0; background: #202824; color: #fff; font: inherit; font-size: .85rem; }
.intent-search__anchor { position: relative; scroll-margin-top: 90px; }
.intent-search__input-row { display: flex; align-items: stretch; min-height: 58px; border: 2px solid #111714; background: #f5f7f4; box-shadow: inset 2px 2px #a6ada8, 3px 3px #101612; }
.intent-search__input-row input { width: 100%; min-width: 0; padding: 14px; border: 0; border-radius: 0; background: transparent; color: #18221d; font: inherit; font-size: 1rem; box-shadow: none; }
.intent-search__input-row input::placeholder { color: #546058; opacity: 1; }
.intent-search button { border-radius: 0; cursor: pointer; font: inherit; }
.intent-search__clear { flex: 0 0 36px; padding: 0; border: 0; color: #293d31; background: transparent; font-size: 1.4rem !important; }
.intent-search__submit { flex: 0 0 82px; border: 2px solid #172119; background: var(--mc-emerald); color: #f5fff2; box-shadow: inset 2px 2px rgba(159, 207, 132, 0.75), inset -2px -2px #1f5137; font-weight: 700 !important; text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.42); }
.intent-search__submit:hover { background: var(--mc-grass-deep); }
.intent-search__submit:active { box-shadow: inset 2px 2px #1f5137, inset -2px -2px rgba(159, 207, 132, 0.55); }
.intent-search :focus-visible { outline: 3px solid #1598b0; outline-offset: 2px; }
.intent-search__popup { position: absolute; top: calc(100% + 4px); left: 0; right: 0; z-index: 10; max-height: min(460px, 55svh); overflow-y: auto; overscroll-behavior: contain; border: 2px solid #101612; background: #f5f7f4; color: #18221d; box-shadow: 4px 4px #101612; text-align: left; }
.intent-search__message { margin: 0; padding: 14px 16px; background: #e2edf0; color: #233d45; font-size: .9rem; }
.intent-search__popup ul { list-style: none; padding: 0; margin: 0; }
.intent-search__result { display: grid; grid-template-columns: 38px minmax(0, 1fr) 18px; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid #bac4bd; cursor: pointer; }
.intent-search__result:hover, .intent-search__result[aria-selected="true"] { background: #dfedd5; box-shadow: inset 4px 0 #476d2b; }
.intent-search__result img { width: 36px; height: 36px; object-fit: contain; image-rendering: pixelated; }
.intent-search__result strong { display: block; font-size: 1rem; line-height: 1.5; overflow-wrap: anywhere; }
.intent-search__meta { display: block; margin: 2px 0; font-size: .75rem; color: #435445; }
.intent-search__reason { display: block; font-size: .85rem; line-height: 1.55; color: #394a40; overflow-wrap: anywhere; }
.intent-search__browse { display: flex; justify-content: space-between; padding: 12px 16px; color: #284f3a; font-weight: 700; font-size: .9rem; }
.intent-search__footer { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 14px; margin-top: 14px; font-size: .75rem; }
.intent-search__footer a, .intent-search__directory { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.intent-search__consent { display: flex; align-items: center; gap: 7px; cursor: pointer; }
.intent-search__consent input { width: 18px; height: 18px; accent-color: #acdc82; flex-shrink: 0; }
.intent-search__directory { display: inline-block; margin-top: 18px; font-size: .85rem; }
@media (min-width: 601px) and (max-height: 740px) {
  .home-hero { min-height: 0; }
  .home-hero__inner { padding-top: 24px; padding-bottom: 24px; }
  .home-hero .eyebrow { display: none; }
  .home-hero h1, html[lang="en"] .home-hero h1 { font-size: 2.35rem; }
  .intent-search { margin-top: 16px; }
}
@media (max-width: 600px) {
  .home-hero { min-height: 0; }
  .home-hero__inner { justify-content: flex-start; }
  .home-hero__copy { text-align: left; }
  .home-hero h1, html[lang="en"] .home-hero h1, .home-hero__lead { margin-left: 0; }
  .home-hero__inner { padding-top: 24px; padding-bottom: 28px; }
  .home-hero h1, html[lang="en"] .home-hero h1 { font-size: 1.7rem; }
  .home-hero__lead { font-size: .9rem; line-height: 1.6; }
  .intent-search { margin-top: 20px; }
  .intent-search__label { font-size: 1.1rem; }
  .intent-search__filters { grid-template-columns: 106px minmax(0, 1fr); gap: 8px; }
  .intent-search__filters select { font-size: .75rem; padding-left: 6px; }
  .intent-search__submit { flex-basis: 62px; font-size: .85rem !important; }
  .intent-search__input-row input { padding: 10px 8px; }
  .intent-search__clear { flex-basis: 28px; }
  .intent-search__result { grid-template-columns: 28px minmax(0, 1fr); gap: 8px; padding: 12px; }
  .intent-search__result img { width: 28px; height: 28px; }
  .intent-search__result > span:last-child { display: none; }
  .intent-search__result strong { font-size: .9rem; }
}
@media (max-width: 600px) and (max-height: 600px) {
  .home-hero .eyebrow, .home-hero__lead { display: none; }
  .home-hero__inner { padding-top: 12px; padding-bottom: 12px; }
  .intent-search { margin-top: 12px; }
  .intent-search__directory { margin-top: 10px; }
}
