/* Shared header and the sourcing-led homepage. */
:root {
  --utd-util: 0px;
}
.utd-header--refresh .home-header__inner { gap: clamp(16px, 2vw, 32px); }
.utd-header--refresh .utd-head-actions { gap: clamp(12px, 1.5vw, 24px); }
.utd-header--refresh .utd-head-saved {
  display: inline-flex;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.utd-header--refresh .utd-head-saved:hover { color: var(--utd-sky); }
.utd-header--refresh .utd-head-saved[aria-current] { color: var(--utd-sky); }
.utd-header--refresh .utd-nav-quick:has(> :only-child) { grid-template-columns: minmax(0, 1fr); }
.utd-home .utd-form-help--inline { margin: 0 0 6px; }
@media (min-width: 1381px) {
  .utd-header--refresh .home-brand { width: clamp(200px, 16vw, 238px); }
  .utd-header--refresh .home-nav { gap: clamp(16px, 1.55vw, 24px); font-size: .9375rem; white-space: nowrap; }
  .utd-header--refresh .utd-nav-link--consign { display: inline-flex; }
  .utd-header--refresh .utd-head-phone strong { font-size: 1.02rem; }
}
@media (max-width: 1380px) {
  .utd-header--refresh .utd-head-saved { display: none; }
  .utd-header--refresh .home-header__inner { gap: var(--sp-3); }
}

.utd-home .utd-brand-home {
  color: var(--utd-deep);
  background: #fff;
  color-scheme: light;
  --brand-section: clamp(44px, 5.2vw, 80px);
}
.utd-brand-home .home-wrap {
  width: min(1320px, calc(100% - 2 * var(--gutter)));
}
.utd-brand-home figure { margin: 0; }
.utd-home .utd-brand-home h2 {
  font-size: clamp(1.95rem, 3.2vw, 3rem);
  line-height: 1.08;
  letter-spacing: -.043em;
}
.utd-home .utd-brand-home p { color: var(--utd-body-ink); }
.utd-brand-home .brand-home-note,
.utd-brand-home figcaption { font-size: .8125rem; line-height: 1.4; }
.utd-brand-home .utd-link { min-height: 44px; }
.utd-brand-home .utd-link:hover { text-decoration: underline; text-underline-offset: .22em; }

.brand-home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  isolation: isolate;
  background: #fff;
  border-bottom: 1px solid var(--utd-line);
}
.brand-home-hero__inner,
.utd-brand-home .brand-home-hero__image { grid-area: 1 / 1; }
.brand-home-hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  padding-block: clamp(22px, 4.2svh, 40px);
}
.brand-home-hero__copy {
  width: min(500px, 57%);
  min-width: 0;
  padding: clamp(20px, 1.85vw, 28px) clamp(20px, 2.55vw, 34px);
  border: 1px solid var(--utd-line);
  border-radius: var(--r-card);
  background: #fff;
  box-shadow: 0 8px 26px rgba(12, 35, 64, .13);
}
.utd-home .brand-home-hero h1 {
  max-width: 17ch;
  color: var(--utd-deep);
  font-size: clamp(2.2rem, min(3.5vw, 6.4svh), 3.6rem);
  font-weight: 750;
  line-height: 1.02;
  letter-spacing: -.055em;
}
.utd-home .brand-home-hero__copy > p {
  max-width: 46ch;
  margin-top: 10px;
  font-size: clamp(1rem, 1.25vw, 1.18rem);
  line-height: 1.42;
}
.brand-home-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 24px;
  margin-top: clamp(22px, 2.7vw, 38px);
}
.brand-home-hero .brand-home-actions { margin-top: 16px; }
.brand-home-hero .brand-home-actions .home-button { min-height: 48px; }
.brand-home-actions .utd-link { text-decoration: underline; text-underline-offset: .25em; }
.brand-home-hero__proof {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 24px;
  margin: 15px 0 0;
  padding: 9px 0 0;
  border-top: 1px solid var(--utd-line);
  list-style: none;
  font-size: .9rem;
  font-weight: 550;
}
.utd-home .brand-home-hero__proof a {
  color: var(--utd-action-hover);
  text-decoration: underline;
  text-underline-offset: .24em;
}
.utd-brand-home .brand-home-hero__image {
  position: relative;
  min-width: 0;
  overflow: clip;
  background: #d9e0e6;
}
.brand-home-hero__media {
  position: absolute;
  inset: 0;
}
.brand-home-hero__image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 62%;
}
.brand-home-hero__image--portrait img { object-position: 76% 33%; }
.brand-home-hero__image figcaption {
  position: absolute;
  right: var(--gutter);
  bottom: var(--sp-3);
  padding: 6px 12px;
  border-radius: var(--r-badge);
  color: #fff;
  background: #0c2340;
}

/* Only the photo holds briefly under the sticky header. The hero keeps its normal flow height. */
@media (min-width: 1024px) and (prefers-reduced-motion: no-preference) {
  .brand-home-hero__image { --hero-photo-pin: 28px; }
  .brand-home-hero__media {
    position: sticky;
    inset: auto;
    top: calc(var(--utd-head) + 1px);
    height: calc(100% - var(--hero-photo-pin));
  }
  .admin-bar .brand-home-hero__media { top: calc(var(--utd-head) + 33px); }
  .brand-home-hero__media img { height: calc(100% + var(--hero-photo-pin)); }
}

.brand-home-block { padding-block: var(--brand-section); }
.brand-home-categories { padding-block: clamp(20px, 3.2svh, 36px) clamp(24px, 4.6svh, 50px); }
.brand-home-categories .brand-home-block__head { margin-bottom: clamp(12px, 1.35vw, 18px); }
.utd-home .brand-home-categories h2 { font-size: clamp(1.65rem, 2.8vw, 2.7rem); }
.brand-home-block + .brand-home-block { border-top: 1px solid var(--utd-line); }
.brand-home-block__head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 10px 28px;
  margin-bottom: clamp(18px, 2.5vw, 34px);
}
.utd-home .brand-home-note a {
  color: var(--utd-action-hover);
  text-decoration: underline;
  text-underline-offset: .23em;
}
.brand-home-types, .brand-home-resources ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.brand-home-types {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(14px, 1.8vw, 27px);
}
.brand-home-types a { display: block; height: 100%; border-radius: var(--r-card); }
.brand-home-types img {
  width: 100%;
  height: auto;
  aspect-ratio: 2.08;
  border-radius: var(--r-card);
  object-fit: cover;
  background: #e6e9ea;
}
.utd-home .brand-home-types h3 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-top: 11px;
  font-size: clamp(1.05rem, 1.65vw, 1.45rem);
  font-weight: 750;
  line-height: 1.15;
}
.brand-home-types h3 svg,
.brand-home-resources a > svg { color: var(--utd-action); }
.brand-home-types a:hover h3 { color: var(--utd-action-hover); }
.utd-home .brand-home-types p { margin-top: 6px; font-size: .9rem; line-height: 1.4; }
.utd-home .brand-home-types__count { font-weight: 700; }
.utd-home .brand-home-note { margin-top: 15px; }
.brand-home-makes { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.brand-home-stock {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 28px);
}
.brand-home-stock .inv-card { min-width: 0; }

.brand-home-story {
  padding-block: var(--brand-section);
  background: var(--utd-paper);
  border-block: 1px solid var(--utd-line);
}
.brand-home-story__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(25px, 5vw, 74px);
}
.brand-home-story img { width: 100%; height: auto; aspect-ratio: 1.65; border-radius: var(--r-card); object-fit: cover; }
.brand-home-story figcaption { margin-top: 7px; color: var(--utd-body-ink); }
.utd-home .brand-home-story__copy p { margin-top: 16px; max-width: 56ch; }
.brand-home-story__copy .utd-link { display: flex; width: fit-content; margin-top: 5px; }
.brand-home-story__copy .utd-link:first-of-type { margin-top: 14px; }

.brand-home-resources {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: clamp(24px, 5vw, 75px);
}
.brand-home-resources ul { margin-block: 20px 11px; border-top: 1px solid var(--utd-line); }
.brand-home-resources li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 67px;
  padding: 12px 0;
  border-bottom: 1px solid var(--utd-line);
}
.brand-home-resources li a:hover strong { color: var(--utd-action-hover); }
.brand-home-resources li small { display: block; margin-top: 3px; color: var(--utd-body-ink); }
.brand-home-sell {
  align-self: start;
  padding: clamp(21px, 3.1vw, 42px);
  border-top: 3px solid var(--utd-action);
  border-radius: var(--r-card);
  background: var(--utd-paper);
}
.utd-home .brand-home-sell p { max-width: 46ch; margin-top: 14px; }

.brand-home-faq {
  padding-block: var(--brand-section);
  border-top: 1px solid var(--utd-line);
}
.brand-home-faq__inner, .brand-home-contact__inner {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: clamp(24px, 6vw, 86px);
}
.brand-home-faq .utd-link { margin-top: 10px; }
.brand-home-faq .utd-faq details { border-color: var(--utd-line); }
.brand-home-faq .utd-faq summary, .brand-home-faq .utd-faq summary:hover { color: var(--utd-deep); }
.brand-home-contact { padding-block: var(--brand-section); background: var(--utd-paper); border-top: 1px solid var(--utd-line); }
.utd-home .brand-home-contact p { margin-top: 13px; max-width: 40ch; }
.utd-home .brand-home-contact .home-form p { margin-top: 0; max-width: none; }
.utd-home .brand-home-contact__phone, .utd-home .brand-home-contact__email {
  display: flex;
  align-items: center;
  width: fit-content;
  min-height: 44px;
  gap: 9px;
  color: var(--utd-action-hover);
  overflow-wrap: anywhere;
  text-decoration: underline;
  text-underline-offset: .23em;
}
.utd-home .brand-home-contact__phone { margin-top: 14px; font-weight: 750; font-size: 1.2rem; }

@media (max-width: 1000px) {
  .brand-home-stock { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .utd-brand-home .brand-home-hero__inner {
    display: block;
    width: min(550px, calc(100% - 2 * var(--gutter)));
    padding-block: clamp(78px, 11.5svh, 110px) 10px;
  }
  .brand-home-hero__copy { width: 100%; padding: clamp(12px, 3.15vw, 22px); }
  .utd-home .brand-home-hero h1 { max-width: none; font-size: clamp(1.6rem, 7.15vw, 3.1rem); }
  .brand-home-hero__proof { margin-top: 12px; }
  .brand-home-hero__image { align-self: start; height: clamp(132px, 18svh, 166px); }
  .brand-home-hero__image img { object-position: 53% 100%; }
  .brand-home-hero__image--portrait img { object-position: center 30%; }
  .brand-home-hero__image figcaption { top: var(--sp-2); bottom: auto; padding: 4px 8px; }
  .brand-home-types { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .brand-home-story__inner, .brand-home-resources, .brand-home-faq__inner, .brand-home-contact__inner {
    grid-template-columns: minmax(0, 1fr);
  }
  .brand-home-story__copy { grid-row: 1; }
}
@media (max-width: 540px) {
  .brand-home-stock { grid-template-columns: minmax(0, 1fr); }
  .brand-home-actions { column-gap: 14px; }
  .brand-home-hero .brand-home-actions .home-button { min-height: 44px; padding-inline: 14px; font-size: .875rem; }
  .brand-home-hero .brand-home-actions { margin-top: 12px; }
  .brand-home-hero .brand-home-actions .utd-link { font-size: .875rem; }
  .utd-home .brand-home-hero__copy > p { margin-top: 10px; font-size: .9375rem; }
  .brand-home-hero__proof { gap: 4px 10px; padding-top: 7px; font-size: .75rem; }
  .brand-home-types { gap: 8px; }
  .brand-home-types a {
    display: grid;
    grid-template-columns: clamp(40px, 13vw, 58px) minmax(0, 1fr);
    gap: 8px;
    align-items: center;
    min-height: 52px;
    padding: 5px;
    border: 1px solid var(--utd-line);
  }
  .brand-home-types img { aspect-ratio: 1.28; border-radius: var(--r-badge); }
  .utd-home .brand-home-types h3 { margin-top: 0; font-size: .875rem; letter-spacing: -.02em; }
  .brand-home-types h3 svg, .brand-home-types a > p { display: none; }
}
@media (max-width: 640px) {
  .utd-header--refresh .utd-head-phone { white-space: nowrap; }
  .utd-header--refresh .utd-head-phone strong { font-size: clamp(.75rem, 3.85vw, 1rem); }
}
@media (max-width: 540px) {
  .utd-home .brand-home-hero h1 { letter-spacing: -.052em; }
  .brand-home-hero .brand-home-actions .home-button svg { display: none; }
}
@media (max-width: 360px) {
  .utd-header--refresh .home-header__inner { gap: 8px; }
}
@media (min-width: 761px) and (max-height: 790px) {
  .brand-home-hero__inner { padding-block: 15px; }
  .brand-home-hero__copy { padding-block: 17px; }
  .utd-home .brand-home-hero h1 { font-size: clamp(2rem, min(3.55vw, 6.45svh), 3.25rem); }
  .utd-home .brand-home-hero__copy > p { margin-top: 10px; line-height: 1.35; }
  .brand-home-hero .brand-home-actions { margin-top: 14px; }
  .brand-home-hero .brand-home-actions .home-button { min-height: 46px; }
  .brand-home-hero__proof { margin-top: 12px; padding-top: 8px; }
  .brand-home-categories { padding-top: 17px; }
  .brand-home-categories .brand-home-block__head { margin-bottom: 11px; }
  .utd-home .brand-home-categories h2 { font-size: clamp(1.65rem, 2.55vw, 2.3rem); }
  .brand-home-types img { aspect-ratio: 2.3; }
  .utd-home .brand-home-types h3 { margin-top: 8px; }
}
@media (max-width: 540px) and (max-height: 735px) {
  .utd-brand-home .brand-home-hero__inner { padding-block: clamp(45px, 8svh, 58px) 7px; }
  .brand-home-hero__copy { padding-block: 12px; }
  .brand-home-hero__image { height: clamp(97px, 16svh, 120px); }
  .brand-home-categories { padding-top: 16px; }
  .brand-home-categories .brand-home-block__head { margin-bottom: 9px; }
  .brand-home-types { gap: 6px; }
  .brand-home-types a { grid-template-columns: clamp(36px, 12vw, 47px) minmax(0, 1fr); min-height: 44px; }
}
@media (max-width: 540px) and (max-height: 610px) {
  .utd-brand-home .brand-home-hero__inner { width: calc(100% - 24px); padding-block: 20px 6px; }
  .brand-home-hero__copy { padding: 10px 12px; }
  .utd-home .brand-home-hero h1 { font-size: clamp(1.4rem, 6.8vw, 1.8rem); }
  .utd-home .brand-home-hero__copy > p { font-size: .875rem; line-height: 1.35; }
  .brand-home-hero .brand-home-actions {
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr);
    gap: 6px;
    margin-top: 9px;
  }
  .brand-home-hero .brand-home-actions .home-button { padding-inline: 8px; font-size: .8125rem; }
  .brand-home-hero .brand-home-actions .utd-link { justify-self: start; font-size: .8125rem; }
  .brand-home-hero__proof { margin-top: 8px; padding-top: 5px; }
  .brand-home-hero__image { height: 95px; }
  .brand-home-hero__image figcaption { top: 2px; right: 12px; padding: 2px 6px; font-size: .625rem; }
  .brand-home-categories { padding-top: 10px; }
}
@media (max-width: 360px) and (max-height: 585px) {
  .utd-brand-home .brand-home-hero__inner { padding-bottom: 4px; }
  .brand-home-hero__copy { padding-block: 8px; }
  .brand-home-hero__proof { display: none; }
  .brand-home-categories { padding-top: 8px; }
}
