/* ==========================================================================
   Projects list — "Send Your RFQ" CTAs
   Visual tokens copied from the home hero primary button:
     home-hero-globe.css:257-355 (base/hover/focus)
     home-hero-globe.css:727-730 (RTL)
     home-hero-globe.css:755-758 / 810-814 / 883-893 (responsive)
     home-v2.css:980-999 (<=480 full width)
   Two sizes are intentional:
     hero   201 x 58 at 2560 (user box 201 x 57)
     finder 121 x 48         (user box 121 x 48)
   Scope: body.page-project_list only.
   ========================================================================== */

@font-face {
  font-family: "DSR Manrope";
  src: url("../../fonts/Manrope-800-latin.woff2?v=1") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "DSR Manrope";
  src: url("../../fonts/Manrope-800-cyrillic.woff2?v=1") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "DSR Vazirmatn";
  src: url("../../fonts/Vazirmatn-800-arabic.woff2?v=1") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FEFF;
}
@font-face {
  font-family: "DSR Vazirmatn";
  src: url("../../fonts/Vazirmatn-800-latin.woff2?v=1") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* The h1 block becomes the positioning context for the editorial CTA.
   width:fit-content shrink-wraps to the longest forced line, so
   inset-inline-end:0 lands on the right edge of line 1 (EN), not on the
   right edge of the 1fr grid column. */
body.page-project_list .hero-top__head {
  position: relative;
  width: fit-content;
}

body.page-project_list .projects-rfq-cta {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: max-content;
  min-width: 201px;
  min-height: clamp(48px, 5.74vh, 58px);
  padding: 0 20px;
  border: 1px solid #ff6a00;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(180deg, #ff7412 0%, #ff6a00 55%, #f96100 100%);
  box-shadow:
    0 14px 30px rgba(255, 106, 0, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
  font-family: "DSR Manrope", "DSR Inter", ui-sans-serif, system-ui, sans-serif;
  font-size: 15.5px;
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease;
}
body.page-project_list .projects-rfq-cta svg {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.2s ease;
}
body.page-project_list .projects-rfq-cta:hover,
body.page-project_list .projects-rfq-cta:focus-visible {
  background: linear-gradient(180deg, #ff7c20 0%, #ff6d05 55%, #fc6503 100%);
  box-shadow:
    0 18px 36px rgba(255, 106, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}
body.page-project_list .projects-rfq-cta:hover svg { transform: translateX(3px); }
body.page-project_list .projects-rfq-cta:active { transform: translateY(1px); }
body.page-project_list .projects-rfq-cta:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 2px #fff,
    0 0 0 5px rgba(255, 106, 0, 0.55),
    0 14px 30px rgba(255, 106, 0, 0.25);
}
html[dir="rtl"] body.page-project_list .projects-rfq-cta svg { transform: scaleX(-1); }
html[dir="rtl"] body.page-project_list .projects-rfq-cta:hover svg { transform: translateX(-3px) scaleX(-1); }
html[dir="rtl"] body.page-project_list .projects-rfq-cta {
  font-size: 14.5px;
  letter-spacing: 0;
}
html[dir="rtl"] body.page-project_list .projects-rfq-cta--hero {
  font-family: "DSR Vazirmatn", "DSR Inter", ui-sans-serif, sans-serif;
}
@media (prefers-contrast: more) {
  body.page-project_list .projects-rfq-cta {
    background: #d24e00;
    border-color: #d24e00;
  }
}

/* Hero variant: static row below the h1 by default, end-aligned.
   EN >=1200 has enough empty space after line 4, so it moves onto the
   last line and lands exactly on the user's red box. FA/RU do not (the
   last line is longer relative to the block) and keep the static row. */
body.page-project_list .projects-rfq-cta--hero {
  margin-top: 18px;
  margin-inline-start: auto;
}
@media (min-width: 1200px) {
  html[lang="en"] body.page-project_list .projects-rfq-cta--hero {
    position: absolute;
    inset-inline-end: 0;
    bottom: calc(6 * var(--u));
    margin: 0;
  }
}
@media (max-width: 1199px) {
  body.page-project_list .projects-rfq-cta--hero {
    min-width: 190px;
    min-height: 48px;
    padding: 0 18px;
    gap: 8px;
    font-size: 14.5px;
  }
  body.page-project_list .projects-rfq-cta--hero svg {
    width: 16px;
    height: 16px;
    flex-basis: 16px;
  }
}
@media (max-width: 820px) {
  body.page-project_list .hero-top__head { width: auto; }
  body.page-project_list .projects-rfq-cta--hero {
    margin-top: 14px;
    margin-inline-start: 0;
  }
}
@media (max-width: 480px) {
  body.page-project_list .projects-rfq-cta--hero { width: 100%; }
}

/* Finder variant: exactly the marked 121x48. The 10px label is deliberate:
   the card's own micro-labels are 8-9px and the row has only 121px. */
body.page-project_list .projects-rfq-cta--compact {
  min-width: 121px;
  width: 121px;
  min-height: 48px;
  height: 48px;
  padding: 0 8px;
  gap: 4px;
  font-size: 10px;
  margin: 0;
}
body.page-project_list .projects-rfq-cta--compact svg {
  width: 12px;
  height: 12px;
  flex-basis: 12px;
}
/* 901-1180: archive column is 270px; three controls do not fit on one line. */
@media (min-width: 901px) and (max-width: 1180px) {
  body.page-project_list .projects-search form > div { flex-wrap: wrap; }
  body.page-project_list .projects-rfq-cta--compact {
    flex: 1 1 100%;
    width: 100%;
    min-width: 0;
    padding: 0 16px;
    gap: 8px;
    font-size: 11.5px;
  }
  body.page-project_list .projects-rfq-cta--compact svg {
    width: 14px;
    height: 14px;
    flex-basis: 14px;
  }
}
@media (max-width: 620px) {
  body.page-project_list .projects-rfq-cta--compact {
    width: 100%;
    min-width: 0;
    padding: 0 14px;
    gap: 6px;
    font-size: 12px;
  }
}

/* Header already hidden when leaving the archive: global scroll-padding would
   leave a header-height gap. Same fix as home-rfq-cta.css:18-20.
   The is-rfq-jump class is added for the duration of a CTA jump so the native
   smooth scroll targets 28px from the first frame (instead of landing on 142px
   and being corrected by 114px at the end). */
html.is-rfq-jump,
html:has(body.page-project_list.dsr-header-hidden) {
  scroll-padding-top: 28px;
}
