/* First Element colour selector — Light / Medium / Dark strips.
   Theme file: css/fe-colour-filter.css
   29 Nov 2026, Australia/Melbourne. Do not put this in
   Additional CSS / post 1989.

   Replaces the single generic swatch per tone with a strip of four
   official product photographs (Classic and Couture only; unaltered).
   Selected state is a 2px underline, the same weight as the
   collections tab ink and .section-collection .accordian { border-top }.
   On the dark homepage section the ink is white; in the cream search
   overlay it is #000a12. No pills, colours or arrows.

   Filtering is still handled by the theme search.js: after the first
   click in the set, further clicks toggle, and a product is shown if it
   matches any selected tone (OR). This file only styles the control.
*/

/* ----- Shared structure ----- */

section.section-search #colors ul,
.search-wrap #colors ul {
  list-style: none;
  margin: 0;
  margin-top: 20px;
}

section.section-search #colors li,
.search-wrap #colors li {
  display: inline-block;
  vertical-align: top;
  margin-right: 28px;
  padding-bottom: 20px;
  max-width: 240px;
}

section.section-search #colors li a,
.search-wrap #colors li a {
  display: block;
  width: 220px;
  max-width: 100%;
  text-decoration: none;
  padding: 0 0 10px;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  -webkit-appearance: none;
  appearance: none;
  font-family: "Haas Grot Disp Web", "Helvetica Neue", Helvetica, Arial, sans-serif;
  -webkit-tap-highlight-color: transparent;
}

section.section-search #colors li a:focus,
.search-wrap #colors li a:focus {
  outline: none;
}

section.section-search #colors li,
.search-wrap #colors li,
section.section-search #colors li a,
.search-wrap #colors li a,
.fe-tone-strip {
  min-width: 0;
  max-width: 100%;
}

/* Filmstrip of four official swatches. object-fit crops in the
   browser only; the media files are never retouched. */
.fe-tone-strip {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
  -ms-flex-direction: row;
  flex-direction: row;
  width: 100%;
  height: 80px;
  margin: 0 0 12px;
  padding: 0;
  overflow: hidden;
  gap: 2px;
}

section.section-search #colors .fe-tone-strip img,
.search-wrap #colors .fe-tone-strip img,
section.section-search #colors li a img,
.search-wrap #colors li a img {
  -webkit-box-flex: 1;
  -ms-flex: 1 1 0%;
  flex: 1 1 0%;
  display: block;
  width: 0;
  min-width: 0;
  max-width: none;
  height: 100%;
  margin: 0;
  padding: 0;
  opacity: 1;
  -o-object-fit: cover;
  object-fit: cover;
  -o-object-position: center;
  object-position: center;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  -webkit-transition: opacity .3s;
  -o-transition: opacity .3s;
  transition: opacity .3s;
}

section.section-search #colors li a span,
.search-wrap #colors li a span {
  display: block;
  font-size: 15px;
  line-height: 1.33;
  letter-spacing: 0.016em;
  font-weight: 400;
  text-decoration: none;
  font-style: normal;
  opacity: 1;
}

.fe-tone-desc {
  display: block;
  font-style: normal;
  font-weight: 400;
  font-size: 12px;
  line-height: 1.35;
  letter-spacing: 0.016em;
  margin-top: 4px;
  font-family: "Haas Grot Disp Web", "Helvetica Neue", Helvetica, Arial, sans-serif;
  white-space: normal;
  overflow-wrap: break-word;
}

/* ----- Homepage (dark section): white type, white underline ----- */

section.section-search #colors li a {
  color: #fff;
}

section.section-search #colors li a:hover,
section.section-search #colors li a:hover span,
section.section-search #colors li a:hover .fe-tone-desc {
  color: #fff;
}

section.section-search #colors a.active {
  border-bottom-color: #fff;
}

section.section-search #colors a:focus-visible {
  outline: 1px solid #fff;
  outline-offset: 4px;
}

section.section-search #colors a .fe-tone-desc {
  opacity: 0.72;
}

/* After a choice, unselected tones quieten. Default (.start) stays even. */
section.section-search #colors a:not(.start):not(.active) .fe-tone-strip {
  opacity: 0.45;
}

section.section-search #colors a:not(.start):not(.active) span,
section.section-search #colors a:not(.start):not(.active) .fe-tone-desc {
  opacity: 0.45;
}

section.section-search #colors a:not(.start):not(.active):hover .fe-tone-strip,
section.section-search #colors a:not(.start):not(.active):hover span {
  opacity: 0.75;
}

section.section-search #colors a:not(.start):not(.active):hover .fe-tone-desc {
  opacity: 0.6;
}

/* ----- Overlay (cream panel): dark type, #000a12 underline ----- */

.search-wrap #colors li a {
  color: #000a12;
  width: 160px;
}

.search-wrap #colors .fe-tone-strip {
  height: 64px;
}

.search-wrap #colors a .fe-tone-desc {
  opacity: 0.62;
  color: #000a12;
}

/* Overlay opens with every tone .active (show all results). Do not
   underline that default. Once the set has been narrowed (.firstClick),
   each remaining .active gets the 2px #000a12 ink. */
.search-wrap #colors.firstClick a.active {
  border-bottom-color: #000a12;
}

.search-wrap #colors a:focus-visible {
  outline: 1px solid #000a12;
  outline-offset: 4px;
}

.search-wrap #colors.firstClick a:not(.active) .fe-tone-strip {
  opacity: 0.4;
}

.search-wrap #colors.firstClick a:not(.active) span,
.search-wrap #colors.firstClick a:not(.active) .fe-tone-desc {
  opacity: 0.4;
}

.search-wrap #colors.firstClick a:not(.active):hover .fe-tone-strip,
.search-wrap #colors.firstClick a:not(.active):hover span {
  opacity: 0.7;
}

/* ----- Phone and phone landscape ----- */

@media (max-width: 767px), screen and (max-width: 812px) and (orientation: landscape) {
  section.section-search #colors ul,
  .search-wrap #colors ul {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    -webkit-column-gap: 10px;
    -moz-column-gap: 10px;
    column-gap: 10px;
    row-gap: 0;
    width: 100%;
  }

  section.section-search #colors li,
  .search-wrap #colors li {
    display: block;
    margin-right: 0;
    width: auto;
    max-width: none;
    padding-bottom: 18px;
  }

  section.section-search #colors li a,
  .search-wrap #colors li a {
    width: 100%;
  }

  section.section-search #colors .fe-tone-strip,
  .search-wrap #colors .fe-tone-strip {
    height: 52px;
    margin-bottom: 10px;
    gap: 1px;
  }

  .fe-tone-desc {
    font-size: 10.5px;
    line-height: 1.33;
    min-height: 2.66em; /* two lines, so the three tiles stay level */
  }
}

/* Tablet overlay (still the 80px-era inline tiles in the theme). */
@media (min-width: 768px) and (max-width: 1023px) {
  .search-wrap #colors li {
    margin-right: 16px;
  }

  .search-wrap #colors li a {
    width: 140px;
  }

  .search-wrap #colors .fe-tone-strip {
    height: 56px;
  }
}

@media (prefers-reduced-motion: reduce) {
  section.section-search #colors li a img,
  .search-wrap #colors li a img,
  section.section-search #colors a:not(.start):not(.active) .fe-tone-strip,
  section.section-search #colors a:not(.start):not(.active) span,
  .search-wrap #colors.firstClick a:not(.active) .fe-tone-strip,
  .search-wrap #colors.firstClick a:not(.active) span {
    -webkit-transition: none;
    -o-transition: none;
    transition: none;
  }
}
