/* =========================================================================
   Resource centre (Figma "Catalogues & fiches techniques", 1139:9435)
   Loaded with the tool only (library syngenta_theme/resources).
   ========================================================================= */
.resources .eyebrow {
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 20px;
  letter-spacing: 0;
  text-transform: uppercase;
}
.resources__title,
.resources__section-title {
  margin: 0;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 600;
  line-height: 1.33;
  color: #2b3024;
}

/* 02 Search: centred heading, the field beside its button, filter pills. */
.resources__search { padding-block: 88px; background: #fff; text-align: center; }
.resources__search .eyebrow { margin-bottom: 16px; }
.resources__title { margin-bottom: 20px; }
.resources__intro { max-width: 920px; margin: 0 auto 28px; font-size: 1.0625rem; line-height: 28px; color: #636e78; }
.resources__intro p { margin: 0; }
.resources__form { display: flex; gap: 20px; margin-bottom: 28px; text-align: start; }
.resources__field {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 12px;
  height: 58px;
  padding-block: 0; padding-inline: 2px 20px;
  border: 1px solid #e5eaed;
  border-radius: 12px;
  background: #fff;
}
.resources__field:focus-within { border-color: var(--syn-green-500); }
.resources__field-icon {
  flex: none;
  width: 54px; height: 54px;
  border-radius: 18px;
  background: #f6fbf7;
  position: relative;
}
.resources__field-icon::after {
  content: "";
  position: absolute;
  inset: 16px;
  background: var(--syn-orange);
  -webkit-mask: var(--icon-search) center / contain no-repeat;
  mask: var(--icon-search) center / contain no-repeat;
}
.resources__field input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: 0;
  background: none;
  font: inherit;
  font-size: 1rem;
  color: #2b3024;
}
.resources__field input::placeholder { color: #636e78; }
.resources__field input:focus { outline: none; }
.resources__submit {
  flex: none;
  width: 300px;
  height: 56px;
  margin-top: 1px;
  padding-block: 0; padding-inline: 50px 20px;
  border: 0;
  border-radius: 12px;
  background: var(--syn-orange) url("../../images/icon-meteo-search.svg") calc(50% - 50px) center / 20px no-repeat;
  box-shadow: 0 10px 24px -6px rgba(26, 41, 15, 0.16);
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
}
.resources__submit:hover { background-color: var(--syn-orange-600); }
.resources__pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.resources__pill {
  display: inline-flex;
  align-items: center;
  height: 42px;
  padding: 0 24px;
  border: 1px solid #e5eaed;
  border-radius: 21px;
  background: #fff;
  font-size: 0.875rem;
  line-height: 20px;
  color: #2b3024;
}
.resources__pill:hover { text-decoration: none; border-color: #1a570d; }
.resources__pill.is-active { border-color: #1a570d; background: #1a570d; color: #fff; }

/* 03 One card per resource type. */
.resources__types { padding-block: 88px 96px; background: #f4f7f9; }
.resources__types .eyebrow { margin-bottom: 16px; }
.resources__types .resources__section-title { margin-bottom: 30px; }
.resources__cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.resources__card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  height: 100%;
  padding: 28px;
  border: 1px solid #e5eaed;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
}
.resources__card { position: relative; min-height: 330px; }
.resources__badge,
.resources__file {
  display: grid;
  place-items: center;
  flex: none;
  width: 54px; height: 54px;
  border-radius: 18px;
  background: #f6fbf7;
  font-family: var(--font-heading);
  font-size: 0.9375rem;
  font-weight: 600;
  color: #1a570d;
}
.resources__card-title { margin: 0; font-size: 1.375rem; font-weight: 600; line-height: 30px; color: #2b3024; }
.resources__card-text { margin: 0; font-size: 0.9375rem; line-height: 24px; color: #636e78; }
.resources__card-link {
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 22px;
  color: #1a570d;
}
.resources__card-link::after { content: "  →"; white-space: pre; }
/* The whole card is the link's target. */
.resources__card-link::before { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.resources__card:hover { border-color: #1a570d; }
.resources__card-link:hover { text-decoration: none; }

/* 04 The documents. */
.resources__list { padding-block: 80px; background: #fff; scroll-margin-top: 24px; }
.resources__list-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 30px;
}
.resources__list .eyebrow { margin-bottom: 4px; }
.resources__all,
.resources__download {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 56px;
  padding: 0 20px;
  border: 1.25px solid #1a570d;
  border-radius: 12px;
  background: #fff;
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 600;
  color: #1a570d;
}
.resources__all { width: 300px; }
.resources__download { width: 190px; }
.resources__all::after,
.resources__download::after {
  content: "";
  width: 20px; height: 20px;
  background: currentColor;
  -webkit-mask: var(--icon-arrow) center / 18px no-repeat;
  mask: var(--icon-arrow) center / 18px no-repeat;
}
.resources__download::after {
  -webkit-mask-image: var(--icon-download);
  mask-image: var(--icon-download);
}
.resources__all:hover,
.resources__download:hover { text-decoration: none; background: #1a570d; color: #fff; }
.resources__documents { display: flex; flex-direction: column; gap: 12px; margin: 0; padding: 0; list-style: none; }
.resources__document {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 112px;
  padding-block: 16px; padding-inline: 20px 56px;
  border: 1px solid #e5eaed;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 22px -8px rgba(13, 31, 13, 0.08);
}
.resources__file { color: #30b252; }
.resources__meta { flex: 1; min-width: 0; }
.resources__doc-title { margin: 0 0 2px; font-size: 1.125rem; font-weight: 600; line-height: 26px; color: #2b3024; }
.resources__doc-product,
.resources__doc-kind { margin: 0; line-height: 24px; white-space: pre-wrap; }
.resources__doc-product { font-size: 0.875rem; color: #636e78; }
.resources__doc-kind { font-size: 0.8125rem; color: #1a570d; }
/* While a filter loads in place, the list fades back. */
.resources__list .container { transition: opacity 0.2s ease; }
.resources.is-loading .resources__list .container { opacity: 0.45; pointer-events: none; }
.resources__empty {
  margin: 0;
  padding: 32px;
  border: 1px dashed #d6e0db;
  border-radius: 18px;
  text-align: center;
  color: #636e78;
}

@media (max-width: 1024px) {
  .resources__submit { width: 220px; }
  .resources__cards { gap: 16px; }
  .resources__card { padding: 22px; }
  .resources__card { min-height: 280px; }
  .resources__card-title { font-size: 1.1875rem; line-height: 27px; }
}
@media (max-width: 860px) {
  .resources__card { min-height: 0; }
  .resources__document { flex-wrap: wrap; padding-inline-end: 20px; }
  .resources__meta { flex-basis: calc(100% - 72px); }
  .resources__download { margin-inline-start: 72px; }
}
@media (max-width: 720px) {
  .resources__search,
.resources__types,
.resources__list { padding-block: 56px; }
  .resources__form { gap: 12px; }
  .resources__submit { width: auto; padding-block: 0; padding-inline: 50px 22px; background-position: 20px center; }
  .resources__pills { gap: 8px; }
  .resources__pill { height: 38px; padding: 0 16px; }
  .resources__all { width: 100%; }
  .resources__download { width: 100%; margin-inline-start: 0; }
  /* Phones: the card rows swipe, like the tool cards — two in view, the
     next peeking in. */
  .resources__cards {
    display: flex;
    gap: 14px;
    margin: -8px calc(-1 * var(--gutter)) 0;
    padding: 8px var(--gutter) 24px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    scrollbar-width: none;
  }
  .resources__cards::-webkit-scrollbar { display: none; }
  .resources__card { flex: 0 0 calc((100% - 28px) / 2.15); scroll-snap-align: start; }
}
@media (max-width: 480px) {
  /* Extra-small screens: the search button goes under the field. */
  .resources__form { flex-direction: column; }
  .resources__submit { width: 100%; padding-inline-start: 50px; background-position: calc(50% - 50px) center; }
  .resources__card { flex-basis: 82%; }
}
