/* An editorial directory built from the live WooCommerce assortment. */
.family-explorer {
  padding-block: clamp(44px, 5.2vw, 78px) clamp(35px, 4vw, 60px);
  background: var(--paper-light);
}

.family-explorer-heading {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: end;
  gap: 30px;
  margin-bottom: clamp(28px, 3.5vw, 48px);
}

.family-explorer-heading .eyebrow { color: #7b624b; margin-bottom: 19px; }
.family-explorer-heading h2 {
  font-family: var(--serif);
  font-size: clamp(44px, 4.6vw, 68px);
  font-weight: 550;
  letter-spacing: -.045em;
  line-height: .99;
}
.family-explorer-heading h2 > span { color: #8b7661; }
.family-explorer-intro { max-width: 44ch; justify-self: end; }
.family-explorer-intro > p:first-child { color: var(--muted); font-size: 13px; line-height: 1.85; }
.family-explorer-totals { display: flex; align-items: baseline; gap: 9px; margin-top: 22px; font-size: 11px; color: var(--muted); }
.family-explorer-totals strong { font-size: 20px; font-weight: 500; color: var(--ink); font-variant-numeric: tabular-nums; }
.family-explorer-totals > span { margin-inline: 9px; color: #b4a89b; }
.family-explorer-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 2.5vw, 36px); }
.family-explorer-card { display: block; min-width: 0; }
.family-explorer-image { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); place-items: center; height: clamp(230px, 24vw, 340px); padding: 40px 18px 34px; background: #eeeae1; overflow: hidden; }
.family-explorer-card:nth-child(2) .family-explorer-image { background: #e9e5dc; }
.family-explorer-card:nth-child(3) .family-explorer-image { background: #e9e4d9; }
.family-explorer-image > img { min-width: 0; min-height: 0; width: 100%; height: 100%; max-height: 250px; object-fit: contain; mix-blend-mode: multiply; transition: transform 240ms ease; }
.family-model-count { position: absolute; top: 16px; left: 19px; font-size: 10px; color: #5e584f; line-height: 1.5; }
.family-image-caption { position: absolute; bottom: 13px; left: 19px; right: 16px; font-size: 9px; color: #6c6458; letter-spacing: .015em; line-height: 1.5; }
.family-explorer-label { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 23px 0 22px; border-bottom: 1px solid var(--line); }
.family-explorer-label > div > span { display: block; font-size: 9px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 9px; }
.family-explorer-label h3 { font-size: clamp(23px, 2.25vw, 33px); font-weight: 550; letter-spacing: -.055em; }
.family-explorer-arrow { display: grid; place-items: center; flex-shrink: 0; width: 36px; height: 36px; border: 1px solid #c6bcaf; border-radius: 50%; color: #8a4d2a; transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease; }
.family-explorer-arrow > svg { width: 19px; height: 19px; }
.family-explorer-card:hover .family-explorer-image > img { transform: translateY(-4px); }
.family-explorer-card:hover .family-explorer-arrow { color: #fff; background: var(--orange); border-color: var(--orange); }
.family-explorer-card:hover h3 { color: #994323; }
.family-explorer-more { display: grid; grid-template-columns: 1fr 3fr; gap: 28px; padding-top: 31px; }
.family-explorer-more > p { padding-top: 15px; color: var(--muted); font-size: 11px; }
.family-explorer-more ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 30px; list-style: none; margin: 0; padding: 0; }
.family-explorer-more li { min-width: 0; }
.family-explorer-more a { display: flex; align-items: center; gap: 9px; min-height: 48px; border-bottom: 1px solid var(--line); }
.family-explorer-more a > span { font-size: 12px; font-weight: 550; letter-spacing: -.025em; }
.family-explorer-more a > small { font-size: 9px; color: var(--muted); white-space: nowrap; margin-left: auto; }
.family-explorer-more a > svg { width: 16px; height: 16px; color: #886a4d; }
.family-explorer-more a:hover { color: var(--orange); }
.family-explorer-footer { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 10px 22px; margin-top: 32px; }
.family-explorer-footer > p { font-size: 11px; color: var(--muted); }
.family-explorer-footer .text-link { font-size: 12px; min-height: 40px; }
.family-explorer + .featured { border-top: 1px solid var(--line); padding-top: clamp(40px, 4vw, 65px); }

/* Keep all four primary destinations available before switching to the menu. */
@media (min-width: 701px) {
  .site-header { gap: clamp(18px, 2.1vw, 34px); }
  .main-nav { gap: clamp(17px, 1.8vw, 29px); }
  .header-tools { gap: clamp(16px, 1.8vw, 26px); }
  .header-search { width: clamp(175px, 19vw, 270px); }
  .header-search span { font-size: clamp(10px, .95vw, 13px); }
}

@media (min-width: 701px) and (max-width: 1100px) {
  .site-header { padding-inline: 24px; gap: 23px; }
  .main-nav { gap: 22px; }
  .header-tools { gap: 17px; }
  .header-search { width: 34px; height: 38px; padding: 0; justify-content: center; border: 0; }
  .header-search > span { display: none; }
}

@media (min-width: 701px) and (max-width: 850px) {
  .site-header { gap: 16px; }
  .main-nav { gap: 16px; }
  .main-nav a { font-size: 11px; }
  .header-tools { gap: 12px; }
  .header-compare > span { display: none; }
  .header-save { min-width: 29px; padding-left: 8px; }
}

@media (min-width: 1700px) {
  .family-explorer { padding-inline: max(var(--gutter), calc((100vw - 1510px) / 2)); }
}

@media (max-width: 950px) {
  .family-explorer-more { grid-template-columns: 1fr; gap: 8px; }
  .family-explorer-more > p { padding-top: 0; }
  .family-explorer-more ul { gap: 0 22px; }
}

@media (max-width: 700px) {
  .family-explorer-heading { grid-template-columns: 1fr; gap: 22px; margin-bottom: 28px; }
  .family-explorer-heading .eyebrow { margin-bottom: 15px; font-size: 9px; }
  .family-explorer-heading h2 { font-size: 45px; }
  .family-explorer-intro { max-width: 45ch; justify-self: start; }
  .family-explorer-intro > p:first-child { font-size: 12px; }
  .family-explorer-totals { margin-top: 15px; }
  .family-explorer-grid { grid-template-columns: 1fr; gap: 26px; }
  .family-explorer-image { height: clamp(245px, 64vw, 360px); padding-inline: 26px; }
  .family-explorer-image > img { max-height: 270px; }
  .family-explorer-label { padding-block: 18px; }
  .family-explorer-label h3 { font-size: 29px; }
  .family-explorer-label > div > span { margin-bottom: 7px; }
  .family-explorer-more { padding-top: 28px; }
  .family-explorer-more ul { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; }
  .family-explorer-more a { gap: 6px; }
  .family-explorer-more a > span { font-size: 11px; }
  .family-explorer-more a > small { font-size: 8px; }
  .family-explorer-more a > svg { width: 14px; height: 14px; }
  .family-explorer-footer { justify-content: flex-start; gap: 2px 22px; margin-top: 25px; }
}

@media (max-width: 360px) {
  .family-explorer-more ul { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .family-explorer-image > img, .family-explorer-arrow { transition: none; }
}
