/* Home page (templates/home.php). */
.cd-home-section { padding-top: 112px; }
.cd-home-head { margin-bottom: 28px; }
.cd-home-head__titles { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.cd-home-h2 { font-size: 64px; }
.cd-home-h2--s { font-size: 48px; }
.cd-home-head .cd-eyebrow { font-size: 13px; }

/* ------------------------------------------------------------ hero */
.cd-home-hero { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: center; padding-top: 72px; }
.cd-home-hero__copy { grid-column: span 6; display: flex; flex-direction: column; gap: 28px; min-width: 0; }
.cd-home-hero__chip { align-self: flex-start; padding: 8px 14px; }
.cd-home-hero__title { font-size: clamp(96px, 9.6vw, 140px); line-height: 0.88; }
.cd-home-hero__title span { color: var(--cd-accent); }
.cd-home-hero__lede { max-width: 560px; font-size: 20px; line-height: 1.55; color: var(--cd-text-2); }
.cd-home-search { display: flex; align-items: center; gap: 12px; background: var(--cd-raised); border: 1px solid var(--cd-border); border-radius: 999px; padding: 8px 8px 8px 24px; max-width: 600px; color: var(--cd-muted); }
.cd-home-search:focus-within { border-color: var(--cd-border-strong); }
.cd-home-search input { flex: 1 1 auto; min-width: 0; background: transparent; border: 0; outline: none; color: var(--cd-text); font-size: 17px; min-height: 44px; }
.cd-home-search input::placeholder { color: var(--cd-muted); opacity: 1; }
.cd-home-search .cd-btn { min-height: 50px; padding: 0 26px; font-size: 16px; }
.cd-home-popular { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 14px; }
.cd-home-popular > span { color: var(--cd-muted); }
.cd .cd-home-popular a { color: var(--cd-text); border: 1px solid var(--cd-border); border-radius: 999px; padding: 0 14px; min-height: 44px; display: inline-flex; align-items: center; }
.cd .cd-home-popular a:hover { border-color: var(--cd-border-hover); color: var(--cd-accent); }
.cd-home-stats { display: flex; gap: 48px; padding-top: 12px; border-top: 1px solid var(--cd-hair); margin: 0; }
.cd-home-stats div { display: flex; flex-direction: column-reverse; }
.cd-home-stats dd { margin: 0; font-size: 48px; }
.cd-home-stats dt { font-size: 13px; letter-spacing: 1px; text-transform: uppercase; color: var(--cd-muted); }

.cd-home-hero__card { grid-column: span 6; display: flex; flex-direction: column; border-radius: 24px; overflow: hidden; background: var(--cd-raised); border: 1px solid var(--cd-border); color: var(--cd-text) !important; min-width: 0; }
.cd-home-hero__img { position: relative; display: block; height: 440px; background: var(--cd-chip); }
.cd-home-hero__badge { position: absolute; left: 20px; top: 20px; background: var(--cd-ground); color: var(--cd-accent); font-size: 12px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; padding: 8px 12px; border-radius: 999px; }
.cd-home-hero__cap { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding: 26px 28px; }
.cd-home-hero__text { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.cd-home-hero__meta { font-size: 13px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--cd-muted); }
.cd-home-hero__shoe { font-family: var(--cd-display); font-size: 44px; line-height: 1; text-transform: uppercase; overflow-wrap: break-word; }
.cd-home-hero__cw { font-size: 18px; color: var(--cd-text-2); }
.cd-home-hero__go { flex-shrink: 0; font-weight: 700; font-size: 15px; color: var(--cd-accent); }
.cd-home-hero__card { transition: border-color 0.2s ease; }
.cd-home-hero__card:hover { border-color: var(--cd-border-hover); }
.cd-home-hero__card:hover .cd-home-hero__go { color: var(--cd-text); }
.cd-home-hero__img { overflow: hidden; }
.cd .cd-home-hero__img img { transition: transform 0.35s ease; }
.cd .cd-home-hero__card:hover .cd-home-hero__img img { transform: scale(1.04); }

/* ------------------------------------------------------------ latest PEs */
.cd-home-pes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px 24px; }
.cd-home-pe { display: flex; flex-direction: column; gap: 14px; color: var(--cd-text) !important; min-width: 0; }
.cd-home-pe__img { display: block; aspect-ratio: 16 / 10; border-radius: 16px; overflow: hidden; background: var(--cd-raised); }
.cd-home-pe__img img { transition: transform 0.25s ease; }
.cd-home-pe:hover .cd-home-pe__img img { transform: scale(1.03); }
.cd-home-pe__text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.cd-home-pe__date { font-size: 12px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--cd-muted); }
.cd-home-pe__player { font-size: 19px; font-weight: 700; line-height: 1.3; }
.cd-home-pe:hover .cd-home-pe__player { color: var(--cd-accent); }
.cd-home-pe__shoe { font-size: 15px; color: var(--cd-text-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cd-home-pe-all { display: flex; flex-direction: column; justify-content: space-between; gap: 24px; background: var(--cd-raised); border: 1px solid var(--cd-border); border-radius: 16px; padding: 28px; color: var(--cd-text) !important; min-height: 260px; }
.cd-home-pe-all:hover { border-color: var(--cd-border-hover); }
.cd-home-pe-all .cd-num { font-size: 72px; line-height: 0.95; color: var(--cd-accent); }
.cd-home-pe-all__text { display: flex; flex-direction: column; gap: 8px; }
.cd-home-pe-all__text span:first-child { font-size: 20px; font-weight: 700; line-height: 1.3; }
.cd-home-pe-all__text span:last-child { font-size: 15px; color: var(--cd-text-2); }

/* ------------------------------------------------------------ upcoming + release alert */
.cd-home-up { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 20px; }
.cd-home-up__card, .cd-home-pop__card { display: flex; flex-direction: column; gap: 12px; color: var(--cd-text) !important; min-width: 0; }
.cd-home-up .cd-tile { aspect-ratio: 4 / 3; }
.cd-home-up__name { font-size: 16px; font-weight: 700; line-height: 1.3; }
.cd-home-up__card:hover .cd-home-up__name, .cd-home-pop__card:hover .cd-home-pop__name { color: var(--cd-accent); }
.cd-home-alert { display: flex; align-items: center; justify-content: space-between; gap: 32px; margin-top: 28px; background: var(--cd-raised); border: 1px solid var(--cd-border); border-radius: var(--cd-radius); padding: 32px 36px; }
.cd-home-alert__icon { width: 56px; height: 56px; border-radius: 999px; background: var(--cd-accent); color: var(--cd-on-accent); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.cd-home-alert__copy { display: flex; flex-direction: column; gap: 6px; flex: 1 1 auto; min-width: 0; }
.cd-home-alert__copy p:last-child { font-size: 16px; color: var(--cd-text-2); max-width: 640px; }
.cd-home-alert__title { font-family: var(--cd-display); font-size: 32px; line-height: 1; text-transform: uppercase; }
.cd-home-alert .cd-btn { flex-shrink: 0; font-size: 16px; min-height: 52px; padding: 0 26px; }

/* ------------------------------------------------------------ new releases + popular shoes */
.cd-home-split { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 48px; align-items: start; }
.cd-home-new { grid-column: span 5; min-width: 0; }
.cd-home-pop { grid-column: span 7; min-width: 0; }
.cd-home-split.is-single > * { grid-column: 1 / -1; }
.cd-home-new__list { display: flex; flex-direction: column; }
.cd-home-new__row { display: flex; align-items: center; gap: 20px; padding: 16px 0; border-top: 1px solid var(--cd-hair); color: var(--cd-text) !important; }
.cd-home-new__row .cd-tile { width: 150px; height: 96px; aspect-ratio: auto; flex-shrink: 0; border-radius: 12px; }
.cd-home-new__text { display: flex; flex-direction: column; gap: 4px; flex: 1 1 auto; min-width: 0; }
.cd-home-new__name { font-size: 19px; font-weight: 700; line-height: 1.3; }
.cd-home-new__row:hover .cd-home-new__name { color: var(--cd-accent); }
.cd-home-new__sub { font-size: 14px; color: var(--cd-muted); }
.cd-home-new__arrow { font-size: 22px; color: var(--cd-muted); }
.cd-home-pop__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.cd-home-pop__card { gap: 0; background: var(--cd-raised); border: 1px solid var(--cd-hair); border-radius: 16px; overflow: hidden; }
.cd-home-pop__card .cd-tile { border-radius: 0; aspect-ratio: 4 / 3; }
.cd-home-pop__name { padding: 14px 16px; font-size: 16px; font-weight: 700; line-height: 1.3; }

/* ------------------------------------------------------------ players */
.cd-home-players { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 28px 20px; }
.cd-home-players .cd-playercard__name { font-size: 17px; }

/* ------------------------------------------------------------ blog */
.cd-home-blog { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; }
.cd-home-feature { grid-column: span 7; display: flex; flex-direction: column; justify-content: space-between; gap: 40px; background: var(--cd-accent); color: var(--cd-on-accent) !important; border-radius: 24px; padding: 40px; min-height: 340px; }
.cd-home-blog.is-single .cd-home-feature { grid-column: 1 / -1; }
.cd-home-feature:hover { background: var(--cd-accent-hover); }
.cd-home-feature__tags { display: flex; gap: 10px; font-size: 12px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; }
.cd-home-feature__tags > span { padding: 7px 0; }
.cd-home-feature__tags .cd-home-feature__chip { background: var(--cd-ground); color: var(--cd-accent); padding: 7px 12px; border-radius: 999px; }
.cd-home-feature__body { display: flex; flex-direction: column; gap: 14px; }
.cd-home-feature__title { font-family: var(--cd-display); font-size: 56px; line-height: 0.95; text-transform: uppercase; overflow-wrap: break-word; }
.cd-home-feature__ex { font-size: 18px; line-height: 1.5; max-width: 560px; }
.cd-home-feature__go { font-weight: 700; font-size: 16px; }
.cd-home-blog__side { grid-column: span 5; display: flex; flex-direction: column; gap: 24px; }
.cd-home-post { flex-grow: 1; display: flex; flex-direction: column; justify-content: space-between; gap: 16px; background: var(--cd-raised); border: 1px solid var(--cd-border); border-radius: var(--cd-radius); padding: 28px; color: var(--cd-text) !important; }
.cd-home-post:hover { border-color: var(--cd-border-hover); }
.cd-home-post__date { font-size: 12px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--cd-muted); }
.cd-home-post__title { font-size: 24px; font-weight: 700; line-height: 1.25; }
.cd-home-post__go { font-weight: 700; font-size: 15px; color: var(--cd-accent); }

/* the Drop Dispatch card sits in a raised panel on the home page */
.cd-home .cd-newsletter { margin-top: 112px; }

/* ------------------------------------------------------------ tablet */
@media (max-width: 1099px) {
  .cd-home-section { padding-top: 72px; }
  .cd-home-h2 { font-size: 52px; }
  .cd-home-h2--s { font-size: 44px; }
  .cd-home-hero { display: flex; flex-direction: column; align-items: stretch; gap: 40px; padding-top: 48px; }
  .cd-home-hero__title { font-size: 112px; }
  .cd-home-hero__img { height: auto; aspect-ratio: 16 / 9; }
  .cd-home-pes { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px 16px; }
  .cd-home-pe__player { font-size: 17px; }
  .cd-home-pe-all { padding: 20px; min-height: 0; }
  .cd-home-pe-all .cd-num { font-size: 52px; }
  .cd-home-pe-all__text span:first-child { font-size: 17px; }
  .cd-home-up { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 20px; }
  .cd-home-alert { flex-wrap: wrap; padding: 28px; gap: 20px 24px; }
  .cd-home-alert__copy { flex-basis: calc(100% - 80px); }
  .cd-home-alert .cd-btn { margin-left: 80px; }
  .cd-home-split { display: flex; flex-direction: column; gap: 72px; }
  .cd-home-new, .cd-home-pop { width: 100%; }
  .cd-home-players { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cd-home-blog { display: flex; flex-direction: column; }
  .cd-home-feature { min-height: 0; }
  .cd-home-blog__side { flex-direction: row; }
  .cd-home-blog__side > * { flex: 1 1 0; min-width: 0; }
  .cd-home .cd-newsletter { margin-top: 72px; }
}

/* ------------------------------------------------------------ phone */
@media (max-width: 767px) {
  .cd-home-nophone { display: none !important; }
  .cd-home-section { padding-top: 48px; }
  .cd-home-head { margin-bottom: 16px; }
  .cd-home-head .cd-eyebrow { display: none; }
  .cd-home-h2, .cd-home-h2--s { font-size: 36px; }
  .cd-home-hero { padding-top: 32px; gap: 32px; }
  .cd-home-hero__copy { gap: 20px; }
  .cd-home-hero__chip { font-size: 12px; padding: 7px 12px; }
  .cd-home-hero__title { font-size: 72px; line-height: 0.9; }
  .cd-home-hero__lede { font-size: 17px; }
  .cd-home-search { padding: 6px 6px 6px 18px; gap: 10px; }
  .cd-home-search input { font-size: 16px; }
  .cd-home-search .cd-btn { min-height: 46px; padding: 0 20px; font-size: 15px; }
  .cd-home-popular { display: none; }
  .cd-home-stats { gap: 28px; border-top: 0; padding-top: 0; }
  .cd-home-stats dd { font-size: 32px; }
  .cd-home-stats dt { font-size: 12px; }
  .cd-home-hero__card { border-radius: 20px; }
  .cd-home-hero__img { aspect-ratio: auto; height: 220px; }
  .cd-home-hero__badge { left: 14px; top: 14px; font-size: 12px; padding: 7px 10px; }
  .cd-home-hero__cap { padding: 18px 20px; }
  .cd-home-hero__meta { font-size: 12px; }
  .cd-home-hero__shoe { font-size: 32px; }
  .cd-home-hero__cw { font-size: 16px; }
  .cd-home-hero__go { display: none; }

  /* side-scrolling strips, bleeding to the screen edge */
  .cd-home-strip { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--cd-gutter); margin-inline: calc(-1 * var(--cd-gutter)); padding: 0 var(--cd-gutter) 6px; scrollbar-width: none; }
  .cd-home-strip::-webkit-scrollbar { display: none; }
  .cd-home-strip > * { scroll-snap-align: start; flex-shrink: 0; }
  .cd-home-pe { width: 240px; gap: 10px; }
  .cd-home-pe__img { aspect-ratio: auto; height: 150px; border-radius: 14px; }
  .cd-home-pe__date { font-size: 12px; letter-spacing: 0; text-transform: none; font-weight: 400; }
  .cd-home-pe__player { font-size: 16px; }
  .cd-home-pe__shoe { font-size: 14px; }
  .cd-home-pe-all { display: none; }
  .cd-home-up__card { width: 160px; gap: 10px; }
  .cd-home-up .cd-tile { aspect-ratio: auto; height: 110px; border-radius: 14px; }
  .cd-home-up__name { font-size: 15px; }
  .cd-home-alert { flex-direction: column; align-items: stretch; margin-top: 20px; padding: 22px; gap: 14px; border-radius: 18px; }
  .cd-home-alert__icon { display: none; }
  .cd-home-alert__title { font-size: 26px; }
  .cd-home-alert__copy { gap: 14px; flex-basis: auto; }
  .cd-home-alert__copy p:last-child { font-size: 15px; line-height: 1.5; }
  .cd-home-alert .cd-btn { margin-left: 0; width: 100%; min-height: 48px; }
  .cd-home-split { gap: 0; }
  .cd-home-new__row { gap: 14px; padding: 12px 0; }
  .cd-home-new__row .cd-tile { width: 104px; height: 66px; border-radius: 10px; }
  .cd-home-new__name { font-size: 16px; }
  .cd-home-new__sub { font-size: 13px; }
  .cd-home-new__arrow { display: none; }
  .cd-home-pop { display: none; }
  .cd-home-split.is-single .cd-home-pop { display: block; }
  .cd-home-pop__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .cd-home-players { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 12px; }
  .cd-home-players .cd-playercard__name { font-size: 15px; }
  .cd-home-feature { padding: 24px; gap: 16px; border-radius: 20px; }
  .cd-home-feature__tags { font-size: 12px; gap: 8px; }
  .cd-home-feature__title { font-size: 36px; }
  .cd-home-feature__ex { font-size: 15px; }
  .cd-home-feature__go { font-size: 15px; }
  .cd-home-blog__side { display: none; }
  .cd-home .cd-newsletter { margin-top: 20px; }
}
@media (max-width: 380px) {
  .cd-home-hero__title { font-size: 64px; }
}
/* photos fill their frames (base.css gives every .cd img height:auto) */
.cd .cd-home-hero__img img, .cd .cd-home-pe__img img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 767px) {
  .cd-home-search > .cd-icon { display: none; }
  .cd-home-search .cd-btn { padding: 0 18px; }
  .cd-home .cd-newsletter { margin-top: 48px; }
}
/* the newest PE keeps the photo's own 16:10 shape so product shots are never cropped */
.cd-home-hero__img { height: auto; aspect-ratio: 16 / 10; }
@media (min-width: 768px) and (max-width: 1099px) {
  .cd-home-hero__card { flex-direction: row; }
  .cd-home-hero__img { width: 58%; flex-shrink: 0; aspect-ratio: 16 / 10; }
  .cd-home-hero__cap { flex-direction: column; align-items: flex-start; justify-content: flex-end; }
  .cd-home-hero__shoe { font-size: 36px; }
}
@media (max-width: 767px) { .cd-home-hero__img { height: auto; aspect-ratio: 16 / 10; } }
