[data-ct-materials-hub] {
  --ct-hub-line: #d6d6d1;
  --ct-hub-accent: #806718;
  --ct-hub-gutter: 18px;
}

body[data-ct-materials-hub="home"] main .ct-supplier-hero h1 {
  text-transform: none !important;
}

body[data-ct-materials-hub] #cordtex-floating-contact .ct-manager-contact__trigger {
  background: #fff !important;
}

body[data-ct-materials-hub] .ct-language b[aria-current="page"] {
  text-decoration: none !important;
}

[data-ct-materials-hub] main a.ct-hub-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  min-height: 44px;
  text-decoration: none;
}

[data-ct-materials-hub] .ct-hub-back > span:first-child {
  color: var(--ct-hub-accent);
}

[data-ct-materials-hub] :is(.ct-hub-back, .ct-answer-list a, [aria-labelledby="catalog-guides-title"] a):focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

[data-ct-materials-hub] .ct-answer-list a,
[data-ct-materials-hub] .ct-answer--compact .ct-answer-list a,
[data-ct-materials-hub] [aria-labelledby="catalog-guides-title"] li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
  padding-block: 9px;
  border: 0 !important;
  border-bottom: 1px solid var(--ct-hub-line) !important;
  color: inherit;
  text-decoration: none !important;
  box-sizing: border-box;
}

[data-ct-materials-hub] .ct-answer-label {
  text-decoration: none;
}

[data-ct-materials-hub] .ct-answer-arrow {
  text-decoration: none !important;
}

[data-ct-materials-hub] [aria-labelledby="catalog-guides-title"] ul {
  display: grid;
  max-width: 880px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

[data-ct-materials-hub] [aria-labelledby="catalog-guides-title"] li {
  margin: 0;
  padding: 0;
}

[data-ct-materials-hub] [aria-labelledby="catalog-guides-title"] li a::after {
  content: "→" / "";
  flex: none;
  color: var(--ct-hub-accent);
}

[data-ct-materials-hub] main .p77-hero a.ct-hub-quick {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: fit-content;
  max-width: 100%;
  min-height: 44px;
  gap: 12px;
  margin: 8px 0 0;
  font-weight: 600;
  text-decoration: none;
}

[data-ct-materials-hub] main .p77-hero a.ct-hub-quick > span {
  color: var(--ct-hub-accent);
  flex: none;
}

[data-ct-materials-hub="raw"] #selection .ct-hub-raw-grid {
  margin-top: 20px;
}

[data-ct-materials-hub="raw"] #selection a.ct-hub-raw-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-auto-rows: min-content;
  align-items: start;
  gap: 10px 12px;
  position: relative;
  min-width: 0;
  margin: 0;
  padding: 0 0 18px;
  border: 0;
  border-bottom: 1px solid var(--ct-hub-line);
  text-decoration: none;
}

[data-ct-materials-hub="raw"] #selection .ct-hub-raw-card .p77-family-image {
  grid-column: 1 / -1;
  grid-row: 1 !important;
  width: 100%;
  aspect-ratio: 3 / 2;
  margin: 0 0 6px;
  overflow: hidden;
}

[data-ct-materials-hub="raw"] #selection .ct-hub-raw-card .p77-family-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

[data-ct-materials-hub="raw"] #selection .ct-hub-raw-card > strong {
  grid-column: 1;
  grid-row: 2;
  font-size: 1.08em;
  font-weight: 600;
  text-transform: none;
}

[data-ct-materials-hub="raw"] #selection .ct-hub-raw-card > small {
  grid-column: 1 / -1;
  grid-row: 3;
}

[data-ct-materials-hub="raw"] #selection .ct-hub-raw-card > .ct-hub-tile-arrow {
  grid-column: 2;
  grid-row: 2 !important;
  position: static;
  align-self: center;
  color: var(--ct-hub-accent);
}

@media (min-width: 700px) {
  [data-ct-materials-hub] [aria-labelledby="catalog-guides-title"] ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 28px;
  }

  [data-ct-materials-hub] [aria-labelledby="catalog-guides-title"] li:last-child {
    grid-column: 1 / -1;
  }
}

@media (min-width: 1024px) {
  html[data-cordtex-system="desktop"] body[data-ct-materials-hub] main.p77-main .p77-hero {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    grid-template-rows: minmax(clamp(510px, 40vw, 620px), auto) !important;
  }

  html[data-cordtex-system="desktop"] body[data-ct-materials-hub] main.p77-main .p77-hero-copy[data-p91-copy] {
    padding-block: clamp(26px, 2.25vw, 42px) !important;
    gap: 16px;
  }

  [data-ct-materials-hub] main .p77-hero-media {
    position: relative;
    height: auto !important;
    min-height: 0 !important;
    overflow: hidden;
  }

  [data-ct-materials-hub] main .p77-hero-media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}

@media (max-width: 699px) {
  [data-ct-materials-hub="home"] .fv2-compact-hero.ct-supplier-hero figure {
    position: relative;
    height: auto;
    aspect-ratio: 2.35;
    overflow: hidden;
  }

  [data-ct-materials-hub="home"] .fv2-compact-hero.ct-supplier-hero figure img {
    position: absolute;
    inset: 50% 0 auto var(--ct-hub-gutter);
    width: calc(100% - var(--ct-hub-gutter));
    height: auto;
    transform: translateY(-50%);
  }

  [data-ct-materials-hub="home"] main > section:has(> .ct-answer-contact-row) {
    padding: 10px var(--ct-hub-gutter) !important;
  }

  [data-ct-materials-hub="home"] .ct-answer-contact-row {
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 8px;
  }

  [data-ct-materials-hub="home"] .ct-answer-contact-row > a {
    font-size: clamp(12px, 3.4vw, 14px) !important;
    text-decoration: underline !important;
    text-underline-offset: 3px;
  }

  [data-ct-materials-hub] .ct-answer {
    padding-inline: var(--ct-hub-gutter);
  }

  [data-ct-materials-hub] main #selection .p77-family-grid .p77-family-image {
    display: block;
    aspect-ratio: 16 / 9;
    height: auto;
    overflow: hidden;
  }

  [data-ct-materials-hub] main #selection .p77-family-grid .p77-family-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  html body.fv2-mobile[data-ct-materials-hub] #cordtex-floating-contact {
    position: fixed !important;
    right: var(--contact-right, 12px) !important;
    bottom: calc(64px + var(--fv2-safe, env(safe-area-inset-bottom, 0px))) !important;
    margin: 0 !important;
    z-index: 2147481200 !important;
  }

  html body.fv2-mobile[data-ct-materials-hub] #cordtex-floating-contact[hidden] {
    display: none !important;
  }
}

@media (360px <= width <= 699px) {
  body.fv2-mobile[data-ct-materials-hub] .p77-hero .p77-actions {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px 16px !important;
    align-items: stretch !important;
  }

  body.fv2-mobile[data-ct-materials-hub] .p77-hero .p77-actions > .p77-action {
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    min-height: 44px;
    margin: 0 !important;
    align-self: stretch;
    box-sizing: border-box;
  }

  body.fv2-mobile[data-ct-materials-hub] .p77-hero .p77-actions > .p77-action:nth-child(3) {
    grid-column: 1 / -1;
  }
}
