@font-face {
  font-family: "Medeo Sans";
  src: url("./MedeoSans.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "Medeo Sans";
  src: url("./MedeoSans-Italic.woff2") format("woff2");
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "Medeo Mono";
  src: url("./MedeoMono.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

/* Important declarations in a named layer override the legacy, unlayered
   font and font shorthand declarations without escalating selector specificity. */
@layer primeazs-medeo {
  :root {
    --pa-medeo-sans: "Medeo Sans", Arial, sans-serif;
    --pa-medeo-mono: "Medeo Mono", "Medeo Sans", monospace;
    --pa-type-sans: var(--pa-medeo-sans) !important;
    --pa-type-heading: var(--pa-medeo-sans) !important;
    --pa-type-display: 44px !important;
    --pa-type-h1: 36px !important;
    --pa-type-h2: 26px !important;
    --pa-medeo-tile-price-size: 20px;
  }

  :root,
  :root * {
    font-family: var(--pa-medeo-sans) !important;
  }

  :root ::before,
  :root ::after,
  :root ::marker,
  :root ::placeholder {
    font-family: inherit !important;
  }

  :root ::file-selector-button {
    font-family: inherit !important;
  }

  :root :is(h1, [role="heading"][aria-level="1"]) {
    font-weight: 600 !important;
  }
  :root [data-v21-product] .v21-product-heading-row h1 {
    font-size: var(--pa-type-h1) !important;
  }

  :root :is(h2, [role="heading"]:not([aria-level="1"], [aria-level="3"], [aria-level="4"], [aria-level="5"], [aria-level="6"]), .v21-news-article-toc__heading),
  :root :is(.features, .page-variant-switchers) > .title,
  :root .product-sidebar > .sidebar-title,
  :root .product-card-v2 .product_data .tab-content::before {
    font-weight: 575 !important;
  }

  :root :is(h3, h4, h5, h6, [role="heading"]:is([aria-level="3"], [aria-level="4"], [aria-level="5"], [aria-level="6"])) {
    font-weight: 550 !important;
  }

  :root :is(h1, h2, h3, h4, h5, h6, [role="heading"]) :is(a, span, b, strong, em, small) {
    font-weight: inherit !important;
  }

  :root .v21-news-body h2 {
    font-size: 30px !important;
  }

  :root .v21-news-body h3 {
    font-size: 24px !important;
  }

  /* The compact price template uses this class combination only for amounts.
     Dynamic prices use data-pa-money; request text and tax notes stay in Sans. */
  :root [data-pa-money],
  :root :is(.v21-product-card__price, .v21-news-inline-product__price) span.whitespace-nowrap.font-condensed.font-black {
    font-family: var(--pa-medeo-mono) !important;
  }

  :root .price > div:has(> .sg-price-int[data-pa-money]),
  :root .sticky-cta__price:has(> .price-value[data-pa-money]) {
    font-family: var(--pa-medeo-mono) !important;
  }

  :root .v21-product-card__price :is([data-pa-money], span.whitespace-nowrap.font-condensed.font-black) {
    font-size: var(--pa-medeo-tile-price-size) !important;
    font-weight: 600 !important;
  }

  @media (max-width: 767px) {
    :root {
      --pa-type-display: 32px !important;
      --pa-type-h1: 26px !important;
      --pa-type-h2: 22px !important;
      --pa-medeo-tile-price-size: 18px;
    }

    :root .v21-news-body h2 {
      font-size: 25px !important;
    }

    :root .v21-news-body h3 {
      font-size: 21px !important;
    }
  }
}

/* Public v21 header, including the independent 404 layout. CSS only: use
   the same controls before and after enhancement; never set display, hover
   colors or a mobile breakpoint on the menu toggle or suggestions panel. */
@media screen and (min-width: 768px) {
  header[data-v21-header] {
    /* The native search has a 1rem line, 2 × .5rem padding and 2 × 2px
       borders. Preserve that external height with the approved 1px stroke. */
    --pa-header-control-height: calc(2rem + 4px);
  }
  header[data-v21-header] :is(
    button[data-pa-nav-desktop],
    a[href="/order-call/"],
    [data-search-form] > div:has(> [data-search-input])
  ) {
    box-sizing: border-box;
    height: var(--pa-header-control-height);
    min-height: 0;
    padding-block: 0;
    border-width: 1px;
  }
  header[data-v21-header] [data-search-form] > div:has(> [data-search-input]) > button[type="submit"] {
    border-inline-start-width: 1px;
  }
  header[data-v21-header] .flex:has(> a[href="/order-call/"]) > a.flex-col {
    height: var(--pa-header-control-height);
    padding-block: 0;
    justify-content: center;
  }
}

/* Same intermediate-width geometry as the approved product header, including
   room for the search submit button when saved-item actions appear at 1024px. */
@media screen and (min-width: 768px) and (max-width: 1199px) {
  header[data-v21-header] .primeazs-container:has(> [data-search-form]) {
    column-gap: 8px;
    padding-inline: 16px;
  }
  header[data-v21-header] .v21-header-brand {
    width: 170px;
    margin-inline-end: 0;
  }
  header[data-v21-header] :is(button[data-pa-nav-desktop], a[href="/order-call/"]) {
    padding-inline: 10px;
  }
  header[data-v21-header] .flex:has(> a[href="/order-call/"]) > a.flex-col {
    padding-inline: 5px;
  }
}

/* Money typography for server-marked amounts and genuine native price state.
   Quotes, notes, and unit labels retain the default Medeo Sans. */
@layer primeazs-medeo {
  :root [data-pa-money],
  :root [data-v21-product] .buy .price > .old,
  :root [data-v21-product] .buy:has(.price-val[data-price]:not([data-price=""], [data-price="0"], [data-price="0.0"], [data-price="0.00"], [data-price^="-"]))
    > .price > div:has(> .sg-price-int),
  :root [data-v21-product] .buy:has(.price-val[data-price]:not([data-price=""], [data-price="0"], [data-price="0.0"], [data-price="0.00"], [data-price^="-"]))
    > .price .sg-price-int,
  :root [data-v21-product]:has([data-topaz-offer-button="1"][data-product-price]:not([data-product-price=""], [data-product-price="0"], [data-product-price^="-"]))
    :is([data-topaz-current-price], [data-topaz-sticky-price], .sticky-cta__price .price-value) {
    font-family: var(--pa-medeo-mono) !important;
  }
}
