/* The mobile carousel keeps its existing swipe controls. */
@media (min-width: 1280px) {
  .trade-slider, .prime-banner .banner-inner { position: relative; }
  .trade-slider > .trade-controls, .prime-banner .prime-controls {
    position: absolute;
    inset: 50% .35rem auto;
    transform: translateY(-50%);
    z-index: 2;
    margin: 0;
    pointer-events: none;
  }
  .trade-slider > .trade-controls, .prime-banner .prime-controls .trade-controls {
    justify-content: space-between;
    align-items: center;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    overflow: visible;
  }
  :is(.trade-slider,.prime-banner) .trade-controls [data-counter] { display: none; }
  :is(.trade-slider,.prime-banner) .trade-controls button {
    pointer-events: auto;
    min-width: 36px;
    min-height: 40px;
    color: #eff9fa;
    background: transparent;
    text-shadow: 0 1px 3px #183339, 0 0 6px #426c7380;
    font-size: 1.2rem;
  }
  :is(.trade-slider,.prime-banner) .trade-controls button:hover { background: transparent; color: white; }
  :is(.trade-slider,.prime-banner) .trade-controls button:focus-visible {
    outline: 2px solid #def7ff;
    outline-offset: -3px;
    border-radius: 50%;
    background: transparent;
  }
  :is(.trade-slider,.prime-banner) .trade-controls [data-rotate]:not(:focus-visible) {
    position: absolute; width: 1px; height: 1px; min-width: 0; min-height: 0;
    padding: 0; clip-path: inset(50%); pointer-events: none;
  }
}

/* The outer disclosure keeps the catalogue footer to a single row when closed. */
.wd-faq {
  color: #163541;
  background: #f6fafa;
  border-block: 1px solid #d7e4e8;
}
.wd-faq summary {
  display: list-item;
  cursor: pointer;
  font-weight: 600;
}
.wd-faq .faq-disclosure > summary {
  min-height: 32px;
  padding: 6px clamp(12px, 1.5vw, 24px);
  font-size: 14px;
  line-height: 20px;
}
.wd-faq summary::marker { color: #426b73; }
.wd-faq summary:focus-visible { outline: 2px solid #176b7a; outline-offset: -2px; }
.wd-faq .faq-questions {
  padding: 0 clamp(12px, 1.5vw, 24px) .6rem;
  background: white;
  border-top: 1px solid #d7e4e8;
}
.wd-faq .faq-questions details { border-bottom: 1px solid #d7e4e8; }
.wd-faq .faq-questions summary { padding-block: .5rem; line-height: 1.4; }
.wd-faq .faq-questions p { max-width: 86ch; line-height: 1.55; margin: 0 0 .65rem 1rem; }
.wd-faq .faq-questions > a { display: inline-block; margin-top: .5rem; }
.wd-related {display:flex;flex-wrap:wrap;align-items:center;gap:.5rem 1rem;margin:.7rem 0}
.wd-related a {text-underline-offset:.18em}

@media screen {
  body > header.mast,
  body:has(.catalogue-search) > header.mast {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgb(248 252 252 / 20%);
    -webkit-backdrop-filter: blur(18px) saturate(115%);
    backdrop-filter: blur(18px) saturate(115%);
    box-shadow: 0 1px 0 rgb(35 66 75 / 16%);
  }
  html { scroll-padding-top: 6rem; }
}

body > header.mast nav a.buyer-link,
body > header.mast nav a.buyer-link:not([data-buyer-authenticated]),
body > header.mast nav a.buyer-link:not([data-buyer-authenticated]):hover {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 2px 5px;
  background: transparent;
  border: 0;
  box-shadow: none;
  color: #143c49;
  font-size: var(--buyer-link-size, .82rem);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: .18em;
}
body > header.mast nav a.buyer-link:focus-visible {
  outline: 2px solid #176b7a;
  outline-offset: 2px;
}
@media (max-width: 580px) {
  header.mast { --buyer-link-size: .76rem; }
}

/* The existing sticky-header observer measures this bar for scroll anchoring. */
:root:has(.catalogue-search) { --catalogue-header-min-height: 70px; }
@media (max-width: 580px) {
  :root:has(.catalogue-search) { --catalogue-header-min-height: 62px; }
}
.outbound-icon {
  display: inline-block;
  width: .88em;
  height: .88em;
  vertical-align: -.05em;
  flex: none;
}

/* A native link spans the banner. The CTA and carousel controls sit above it. */
.banner-inner > .wd-banner-art { position: absolute; inset: 0; z-index: 0; }
.banner-inner > .wd-banner-art:focus-visible { outline: 3px solid currentColor; outline-offset: -4px; }
.banner-inner:has(> .wd-banner-art) > .banner-copy { position: relative; z-index: 1; pointer-events: none; }
.banner-inner:has(> .wd-banner-art) > .banner-contact { position: relative; z-index: 1; }
.prime-banner .prime-controls { z-index: 2; pointer-events: none; }
.prime-banner .prime-controls button { pointer-events: auto; }
.prime-banner .prime-dismiss { z-index: 3; }

/* Place the slider controls directly on their artwork at every viewport size. */
:is(#results,.prime-banner,.trade-slider) .trade-controls,
:is(#results,.prime-banner,.trade-slider) .trade-controls button,
:is(#results,.prime-banner,.trade-slider) .trade-controls button:is(:hover,:active,:focus-visible) {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  backdrop-filter: none;
  color: white;
  text-shadow: 0 1px 2px #102f3c, 0 0 3px #102f3c;
}
:is(#results,.prime-banner,.trade-slider) .trade-controls [data-counter] { color: white; }
