/* ==========================================================================
   Complex Japan — Public site components
   Built on tokens defined in styles.css. Sections:

   01. Page shell
   02. Promo bar
   03. Top navigation
   04. Mobile site menu (drawer)
   05. Subnav strip
   06. Hero
   07. Main content shell + section headers
   08. Web banner (carousel)
   09. Drop strip
   10. Story cards (editorial)
   11. Compact stories / video stories / latest list
   12. Products grid
   13. Brand collab (cards & PDP)
   14. Events landing + cards
   15. App CTA
   16. Drops landing
   17. Filter page
   18. PDP (Product Detail Page)
   19. Shop landing (category tiles, brand carousels, trending artists)
   21. Detail layouts (article / artist / drop / event detail)
   22. Article supporting modules (YouTube / Vimeo / Spotify / SoundCloud)
   23. Newsletter modal
   24. Footer
   25. Responsive — large (1600+)
   26. Responsive — tablet (1024)
   27. Responsive — mobile (768)
   28. Responsive — small mobile (480)
   29. Responsive — tiny (620)
   ========================================================================== */

/* --------------------------------------------------------------------------
   01. Page shell
   -------------------------------------------------------------------------- */
.build-page {
  background: var(--white);
}

/* --------------------------------------------------------------------------
   02. Top navigation
   -------------------------------------------------------------------------- */
.public-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.nav-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  min-height: 64px;
  padding: 0 clamp(20px, 4vw, 56px);
}

.menu-trigger {
  justify-self: start;
  display: inline-flex;
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  margin-left: -8px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--black);
}

.brand-logo {
  justify-self: center;
  display: inline-flex;
  align-items: center;
  height: 22px;
  overflow: hidden;
}

.brand-logo img {
  height: 100%;
  width: auto;
  object-fit: contain;
}

.nav-cats {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: clamp(14px, 1.6vw, 26px);
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 56px) 12px;
  font-size: 15px;
  font-weight: var(--weight-regular);
  letter-spacing: normal;
  text-transform: uppercase;
  line-height: 1;
}

.nav-cats::-webkit-scrollbar {
  display: none;
}

.nav-item {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.nav-item > a {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: 6px;
  color: #40444a;
  font-weight: 500;
  transition: color var(--duration-fast) var(--ease-out);
}

/* Reserve the bold width so text doesn't shift on hover/active (mirrors complex.com) */
.nav-item > a::before {
  content: attr(data-text);
  height: 0;
  overflow: hidden;
  visibility: hidden;
  font-weight: 700;
  pointer-events: none;
}

/* Underline animates in from the left on hover (mirrors complex.com) */
.nav-item > a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 150ms var(--ease-out);
}

.nav-item > a:hover {
  color: var(--black);
  font-weight: 700;
}

.nav-item > a:hover::after {
  transform: scaleX(1);
}

.nav-cats a,
.nav-tools button {
  min-width: max-content;
}

.nav-tools {
  display: flex;
  flex: 0 0 auto;
  justify-self: end;
  align-items: center;
  gap: clamp(12px, 1.6vw, 18px);
}

.nav-search {
  display: flex;
  align-items: center;
  gap: 8px;
  width: clamp(220px, 22vw, 320px);
  height: 38px;
  padding: 0 14px;
  border-radius: 6px;
  background: #f1f1f1;
  color: var(--muted);
}

.nav-search span {
  display: inline-flex;
  flex: 0 0 auto;
}

.nav-search svg {
  width: 17px;
  height: 17px;
}

.nav-search input {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 13px;
  /* Suppressed on the input because the ring would draw inside the pill;
     the wrapper below carries the indicator instead. */
  outline: none;
}

/* Without this the header search field had no focus indicator at all. */
.nav-search:focus-within {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

.nav-search input::placeholder {
  color: var(--muted);
}

.nav-tools .nav-search-mobile {
  display: none;
}

.menu-trigger,
.nav-tools button {
  align-items: center;
  justify-content: center;
  min-width: 26px;
  min-height: 26px;
  color: var(--black);
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
}

.nav-tools button {
  display: inline-flex;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.menu-trigger {
  cursor: pointer;
}

/* Icon SVGs carry their own currentColor fill/stroke (mirrors HQ markup);
   CSS only sizes them. */
.nav-tools svg {
  width: 20px;
  height: 20px;
}

.menu-trigger svg {
  width: 24px;
  height: 24px;
}

/* --------------------------------------------------------------------------
   04. Mobile site menu (drawer)
   -------------------------------------------------------------------------- */
.menu-backdrop {
  position: fixed;
  inset: 0;
  z-index: 48;
  background: rgba(0, 0, 0, 0.56);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--duration-fast) var(--ease-out);
}

.site-menu {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 49;
  display: grid;
  grid-template-rows: auto 1fr auto;
  width: min(86vw, 390px);
  background: var(--black);
  color: var(--white);
  transform: translateX(-100%);
  /* Off-screen via transform alone left all 14 links focusable: keyboard users
     tabbed into invisible stops that screen readers also refused to name
     (aria-hidden on focusable content).

     The fix is the `inert` attribute rather than visibility, applied in the
     markup and toggled in setMenuOpen(). visibility cannot do this job here:
     transitioned, it is still hidden when setMenuOpen() calls .focus(), and
     un-transitioned it kills the slide-out. inert doesn't touch painting. */
  transition: transform var(--duration-medium) var(--ease-out), box-shadow var(--duration-medium) var(--ease-out);
}

.menu-open .site-menu {
  box-shadow: 24px 0 60px rgba(0, 0, 0, 0.3);
}

.menu-open .menu-backdrop {
  opacity: 1;
  pointer-events: auto;
}

.menu-open .site-menu {
  transform: translateX(0);
}

.site-menu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--dark-line);
}

.menu-logo {
  display: inline-flex;
  width: 128px;
}

.menu-logo img {
  width: 100%;
  height: auto;
  display: block;
}

.menu-close {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--dark-line-strong);
  background: transparent;
  color: var(--white);
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
}

.site-menu nav {
  display: grid;
  align-content: start;
  padding: 12px 0;
  overflow-y: auto;
}

.site-menu section {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 46px;
  padding: 0 22px;
}

.menu-main-link {
  display: flex;
  align-items: center;
  min-width: 0;
  width: 100%;
  color: var(--white);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.menu-main-link svg {
  width: 18px;
  height: 18px;
  margin-left: auto;
  color: var(--dark-text-muted);
}

.menu-featured {
  padding: 16px 22px 20px;
}

.menu-featured-label {
  margin: 0 0 12px;
  color: var(--dark-text-muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.menu-featured-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.menu-feature-card {
  display: flex;
  flex-direction: column;
  color: var(--white);
}

.menu-feature-media {
  display: block;
  aspect-ratio: var(--ratio-wide);
  overflow: hidden;
  background: #1a1a1a;
}

.menu-feature-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.menu-feature-cat {
  margin-top: 8px;
  color: var(--dark-text-muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.menu-feature-title {
  margin-top: 4px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
}

.menu-tabbar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--dark-line);
}

.menu-tabbar a {
  display: grid;
  justify-items: center;
  gap: 7px;
  padding: 14px 0 16px;
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.menu-tabbar a + a {
  border-left: 1px solid var(--dark-line);
}

.menu-tabbar span {
  display: inline-grid;
  place-items: center;
}

.menu-tabbar svg {
  width: 26px;
  height: 26px;
}

body.menu-open {
  overflow: hidden;
}

/* --------------------------------------------------------------------------
   05. Subnav strip
   -------------------------------------------------------------------------- */
.subnav-strip {
  display: flex;
  max-width: 1440px;
  margin: 0 auto;
  padding: 16px clamp(24px, 4vw, 64px) 0;
  gap: 24px;
  overflow-x: auto;
  background: var(--white);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.subnav-strip a {
  min-width: max-content;
  padding-bottom: 8px;
  border-bottom: 2px solid transparent;
  color: var(--black);
}

.subnav-strip a.active {
  border-color: var(--black);
}

.subnav-strip.shop-tabs {
  gap: 8px;
  padding-bottom: 8px;
}

.subnav-strip.shop-tabs a {
  min-width: 84px;
  padding: 8px 12px;
  border: 1px solid var(--black);
  background: var(--black);
  color: var(--white);
  text-align: center;
}

.subnav-strip.shop-tabs a.active {
  background: var(--white);
  color: var(--black);
}

.page-context {
  display: flex;
  max-width: 1440px;
  margin: 0 auto;
  padding: 12px clamp(24px, 4vw, 64px) 0;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--white);
}

.back-link {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 28px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.back-link:hover {
  color: var(--black);
}

.back-link::before {
  content: "←";
  font-size: 12px;
}

/* --------------------------------------------------------------------------
   06. Hero
   -------------------------------------------------------------------------- */
.public-hero {
  position: relative;
  display: flex;
  min-height: min(460px, calc(100vh - 200px));
  align-items: end;
  overflow: hidden;
  background: var(--black);
  color: var(--white);
}

body[data-page="homepage"] .public-hero {
  min-height: min(820px, calc(100vh - 44px));
}

.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  opacity: 0;
  filter: contrast(1.05);
  transition: opacity 600ms var(--ease-out);
}

.hero-slide.active {
  opacity: 0.7;
}

.public-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.05) 70%);
}

.hero-copy {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  /* Match .public-main's horizontal padding so the hero copy's left edge lines
     up with the section content below it (was inset an extra ~4-19px). */
  padding: clamp(24px, 3.5vw, 56px);
  padding-bottom: 76px;
}

/* .hero-cat also carries .card-cat (black) which is declared later; the
   descendant selector wins the specificity tie so the kicker stays white. */
.public-hero .hero-cat {
  color: var(--white);
  margin-bottom: 12px;
}

.hero-copy h1,
.hero-copy h2 {
  max-width: 760px;
  margin: 0 0 24px;
  font-size: clamp(30px, 3.4vw, 48px);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: var(--letter-tight);
  overflow-wrap: anywhere;
}

/* Story subtitle (WP subtitle field) sitting under the hero headline. */
.hero-sub {
  max-width: 640px;
  margin: 0 0 24px;
  font-size: clamp(15px, 1.15vw, 18px);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.9);
  overflow-wrap: anywhere;
}

/* Tuck the subtitle up against the headline it belongs to. Browsers without
   :has() simply keep the headline's standard 24px gap — no layout break. */
.hero-copy h1:has(+ .hero-sub:not([hidden])),
.hero-copy h2:has(+ .hero-sub:not([hidden])) {
  margin-bottom: 12px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.button-hero {
  min-height: 44px;
  padding: 0 18px;
  border-color: var(--white);
  border-radius: 4px;
  background: transparent;
  color: var(--white);
  font-size: 12px;
  font-weight: var(--weight-bold);
}

.button-hero:hover {
  background: var(--white);
  color: var(--black);
}

.hero-controls {
  position: absolute;
  z-index: 1;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 clamp(24px, 5vw, 64px) 24px;
}

.hero-dots {
  display: flex;
  /* Painted dots stay 8px; the gap shrinks because each button now carries its
     own transparent padding out to a 24px target (WCAG 2.5.8). */
  gap: 0;
}

/* 8px hit targets were unusable for touch and motor-impaired readers. The
   button is 24x24 and transparent; the visible dot is the pseudo-element. */
.hero-dots button {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

.hero-dots button::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
}

.hero-dots button.active::before {
  background: var(--white);
}

.hero-buttons {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-ctrl {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  background: transparent;
  color: var(--white);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  transition: background var(--duration-fast) var(--ease-out);
}

.hero-prev,
.hero-next {
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.hero-pause {
  border: 0;
  border-radius: 50%;
}

.hero-ctrl svg {
  width: 20px;
  height: 20px;
}

.hero-pause svg {
  width: 32px;
  height: 32px;
}

.hero-prev:hover,
.hero-next:hover {
  background: rgba(255, 255, 255, 0.16);
}

.hero-pause:hover {
  opacity: 0.8;
}

/* --------------------------------------------------------------------------
   07. Main content shell + section headers
   -------------------------------------------------------------------------- */
.public-main {
  max-width: 1440px;
  margin: 0 auto;
  /* Also read by the hero's full-bleed breakout below. */
  --main-pad: clamp(24px, 3.5vw, 56px);
  padding: var(--main-pad);
}

/* The hero and the back-link moved inside <main> so that landmark navigation
   and "skip to content" reach the homepage <h1>, which lives in the hero.

   The hero already caps itself at 1440px (see .public-hero above) — same cap as
   main — so cancelling main's padding restores its original geometry exactly.
   Deliberately NOT 100vw: that measurement includes the scrollbar, which pushed
   the document into horizontal overflow on any page tall enough to scroll. */
.public-main > .public-hero {
  max-width: none;
  margin-left: calc(-1 * var(--main-pad));
  margin-right: calc(-1 * var(--main-pad));
}

/* Only cancel main's top padding when the hero is what sits against the nav.
   On /articles the back-link comes first, and an unconditional negative margin
   slid the hero up over it. */
.public-main > .public-hero:first-child {
  margin-top: calc(-1 * var(--main-pad));
}

/* Inside main it would otherwise be padded and max-width-capped twice, so the
   back-link drifted out of the content column. Drop its own box and let main's
   padding place it, which aligns it with the article kicker below. */
.public-main > .page-context {
  max-width: none;
  margin: 0 0 20px;
  padding: 0;
}

body:not([data-page="homepage"]) .public-main {
  padding-top: 32px;
}

.category-title {
  margin: 24px 0 4px;
  font-size: clamp(16px, 1.5vw, 18px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: normal;
  text-transform: none;
}

.public-section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  margin: 56px 0 24px;
  padding-bottom: 0;
  border-bottom: 0;
}

.public-section-header h2,
.public-section-header h1 {
  font-size: clamp(22px, 2vw, 28px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: normal;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--black);
}

.text-link::after {
  content: "→";
  font-size: 12px;
  transition: transform var(--duration-fast) var(--ease-out);
}

.text-link:hover {
  color: var(--muted);
}

.text-link:hover::after {
  transform: translateX(2px);
}

/* --------------------------------------------------------------------------
   08. Web banner (carousel)
   -------------------------------------------------------------------------- */
.web-banner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(360px, 1.1fr);
  gap: 0;
  align-items: stretch;
  min-height: 260px;
  margin-bottom: 32px;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
}

.web-banner-secondary {
  margin-top: 24px;
}

.banner-copy {
  display: grid;
  align-content: center;
  gap: 10px;
  padding: 24px;
  background: var(--white);
}

.banner-copy .eyebrow {
  margin: 0;
}

.banner-copy h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 44px);
  line-height: 1;
  letter-spacing: 0;
}

.banner-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.32;
  max-width: 420px;
}

.banner-copy .button {
  justify-self: start;
  min-height: 36px;
  padding: 0 22px;
  margin-top: 8px;
}

.banner-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 260px;
  overflow: hidden;
  background: linear-gradient(135deg, #1a1a1a, #4b6cff 60%, #f4f5f6);
}

.banner-visual-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.banner-visual-overlay {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 4px;
  padding: 24px;
  text-align: center;
  color: var(--white);
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.5);
}

.banner-visual-overlay .sale-eyebrow {
  font-size: clamp(13px, 1.5vw, 20px);
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.banner-visual-overlay strong {
  font-size: clamp(72px, 9vw, 128px);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: 0;
  color: var(--red);
  text-transform: uppercase;
  -webkit-text-stroke: 0.75px var(--white);
}

.banner-visual-overlay .sale-promo {
  font-size: clamp(15px, 1.8vw, 24px);
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.banner-visual-overlay span:not(.sale-eyebrow):not(.sale-promo) {
  font-size: clamp(32px, 5vw, 72px);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: 0;
  text-transform: uppercase;
}

.banner-arrow {
  position: absolute;
  z-index: 3;
  top: 50%;
  display: inline-grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid var(--black);
  background: var(--white);
  color: var(--black);
  cursor: pointer;
  font-size: 22px;
  font-weight: 900;
  line-height: 1;
  opacity: 0;
  transform: translateY(-50%);
  transition: opacity var(--duration-fast) var(--ease-out);
}

.banner-prev { left: 16px; }
.banner-next { right: 16px; }

.web-banner:hover .banner-arrow,
.web-banner:focus-within .banner-arrow {
  opacity: 1;
}

.banner-dots {
  position: absolute;
  z-index: 3;
  bottom: 16px;
  left: 50%;
  display: flex;
  gap: 6px;
  transform: translateX(-50%);
}

.banner-dots button {
  width: 24px;
  height: 3px;
  padding: 0;
  border: 0;
  background: #b8b8b8;
  cursor: pointer;
}

.banner-dots button.active {
  background: var(--black);
}

/* --------------------------------------------------------------------------
   09. Drop strip
   -------------------------------------------------------------------------- */
.drop-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 240px;
  padding: 32px;
  border: 1px solid var(--line);
  background: var(--black);
  color: var(--white);
}

.drop-strip h2 {
  max-width: 840px;
  margin-top: 16px;
}

/* --------------------------------------------------------------------------
   10. Story cards (editorial)
   -------------------------------------------------------------------------- */
.editorial-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 24px;
}

.story-stack {
  display: grid;
  gap: 16px;
}

.story-card {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 20px;
  padding: 0;
  border: 0;
  color: var(--ink);
  align-items: start;
}

.story-card-large {
  grid-template-columns: 1fr;
  gap: 12px;
}

.card-cat {
  display: block;
  margin-bottom: 6px;
  color: var(--black);
  font-size: 12px;
  font-weight: var(--weight-bold);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.story-media {
  position: relative;
  display: block;
  overflow: hidden;
  color: var(--white);
}

.story-media img {
  width: 100%;
  height: 100%;
  min-height: 150px;
  aspect-ratio: var(--ratio-wide);
  object-fit: cover;
  object-position: center top;
  border: 0;
  transition: transform var(--duration-medium) var(--ease-out), filter var(--duration-medium) var(--ease-out);
}

/* Clip frame for hover-zoom images that aren't wrapped in .story-media
   (feature story, video story, latest list) so their zoom stays contained
   — matching the story cards instead of bleeding past the box. */
.card-media {
  position: relative;
  display: block;
  overflow: hidden;
}

.card-media img {
  display: block;
}

.story-media > span {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 8px 12px;
  background: var(--black);
  color: var(--white);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity var(--duration-fast) var(--ease-out), transform var(--duration-fast) var(--ease-out);
}

.story-card:hover .story-media img,
.story-card:focus-visible .story-media img,
.compact-story-card:hover .story-media img,
.compact-story-card:focus-visible .story-media img,
.feature-story:hover img,
.feature-story:focus-visible img,
.video-story:hover img,
.video-story:focus-visible img,
.latest-row:hover img,
.latest-row:focus-visible img {
  filter: brightness(0.82);
  transform: scale(1.035);
}

.story-card:hover .story-media > span,
.story-card:focus-visible .story-media > span,
.compact-story-card:hover .story-media > span,
.compact-story-card:focus-visible .story-media > span {
  opacity: 1;
  transform: translateY(0);
}

.story-card-large img {
  aspect-ratio: var(--ratio-wide);
  height: auto;
}

.story-card h3 {
  margin-top: 10px;
  margin-bottom: 8px;
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 600;
  line-height: 1.22;
  letter-spacing: normal;
  text-transform: none;
}

.story-card:not(.story-card-large) h3 {
  font-size: 18px;
}

.story-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.home-top-stories .public-section-header {
  margin-top: 0;
}

/* Give the homepage hero and its first editorial section room to breathe.
   Category pages keep the tighter heading stack beneath their category title. */
body[data-page="homepage"] .home-top-stories .public-section-header {
  margin-top: 56px;
}

/* The card grids below target `> div`, which also matches the section-header
   div and turns it into a grid — pushing "すべて見る" out of its right-aligned
   flex slot. Keep these headers on the shared flex layout so every section's
   "すべて見る" lines up on the right edge. */
.home-feature-grid > .public-section-header,
.home-latest-list > .public-section-header {
  display: flex;
}

/* --------------------------------------------------------------------------
   11. Compact stories / video stories / latest list
   -------------------------------------------------------------------------- */
.compact-story-row,
.home-feature-grid > div {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.home-feature-grid > div {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.compact-story-card {
  display: grid;
  gap: 8px;
  color: var(--ink);
}

.compact-story-card img {
  width: 100%;
  aspect-ratio: var(--ratio-wide);
  height: auto;
  object-fit: cover;
  object-position: center top;
}

.compact-story-card h3,
.video-story h3,
.latest-row h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: normal;
  text-transform: none;
}

.compact-story-card p,
.feature-story p,
.latest-row p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: var(--weight-regular);
  line-height: 1.45;
}

.home-feature-trend {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
  gap: 24px;
  margin-top: 40px;
}

.feature-story {
  display: grid;
  gap: 12px;
  color: var(--ink);
}

.feature-story img {
  width: 100%;
  aspect-ratio: var(--ratio-wide);
  object-fit: cover;
  object-position: center top;
  transition: transform var(--duration-medium) var(--ease-out), filter var(--duration-medium) var(--ease-out);
}

.feature-story h2 {
  font-size: clamp(22px, 2.2vw, 30px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: normal;
}

.trending-panel {
  align-self: start;
}

.trending-heading {
  margin: 0 0 12px;
  color: var(--black);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: var(--letter-tight);
  line-height: 1.18;
}

.trending-panel a {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  color: var(--ink);
}

.trending-panel strong {
  color: var(--muted);
  font-size: 15px;
  font-weight: 600;
}

.trending-cat {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.trending-title {
  display: block;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
}

.video-stories {
  /* Full-bleed black band whose inner content still aligns to the page grid:
     negative margins cancel .public-main's padding, then equal padding brings
     the header + cards back to the same left edge as every other section. */
  margin: 40px calc(-1 * clamp(24px, 3.5vw, 56px));
  padding: 24px clamp(24px, 3.5vw, 56px);
  background: var(--black);
  color: var(--white);
}

.video-stories .public-section-header {
  margin: 0 0 20px;
}

.video-stories .public-section-header h2,
.video-stories .text-link {
  color: var(--white);
}

.video-stories .text-link:hover {
  color: var(--dark-text-soft);
}

.video-story-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.video-story {
  display: grid;
  gap: 8px;
  color: var(--white);
}

.video-story img {
  width: 100%;
  aspect-ratio: var(--ratio-wide);
  object-fit: cover;
  object-position: center top;
  transition: transform var(--duration-medium) var(--ease-out), filter var(--duration-medium) var(--ease-out);
}

.video-story span {
  color: var(--dark-text-soft);
  font-size: 11px;
  font-weight: 900;
}

.home-latest-list > div {
  display: grid;
  gap: 0;
}

.latest-row {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}

.latest-row img {
  width: 100%;
  aspect-ratio: var(--ratio-wide);
  object-fit: cover;
  object-position: center top;
  transition: transform var(--duration-medium) var(--ease-out), filter var(--duration-medium) var(--ease-out);
}

.latest-row-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.latest-row-tag {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.latest-row-body h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
  text-transform: none;
}

.latest-row-body p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.latest-row .latest-row-byline {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: auto !important;
  padding-top: 16px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.latest-row-byline strong {
  color: var(--muted);
  font-weight: 700;
}

/* ===== Home Shop (editorial cards) ===== */
.home-shop {
  margin: 64px 0;
}

.home-shop-head {
  margin-bottom: 24px;
}

.home-shop-head h2 {
  font-size: clamp(32px, 4vw, 56px);
  margin: 0 0 8px;
  text-transform: none;
}

.home-shop-head .eyebrow {
  margin: 0;
  color: var(--black);
  font-size: 16px;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 900;
}

.home-shop-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.shop-edit-card {
  display: grid;
  gap: 12px;
  color: var(--ink);
}

.shop-edit-media {
  aspect-ratio: var(--ratio-square);
  overflow: hidden;
}

.shop-edit-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform var(--duration-medium) var(--ease-out);
}

.shop-edit-card:hover .shop-edit-media img {
  transform: scale(1.03);
}

.shop-edit-card h3 {
  margin: 0;
  font-size: 18px;
  text-transform: none;
}

.shop-edit-cta {
  width: max-content;
  margin-top: 4px;
}

/* ===== Home Latest Drops ===== */
.home-drops {
  margin: 64px 0;
}

.home-drops-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.drop-feature-card {
  position: relative;
  display: grid;
  gap: 16px;
  color: var(--ink);
  background: var(--white);
}

.drop-feature-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 40px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.drop-feature-banner.live {
  background: var(--red);
  color: var(--white);
}

.drop-feature-banner.upcoming {
  background: var(--black);
  color: var(--white);
}

.live-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--white);
}

.drop-feature-media {
  position: relative;
  aspect-ratio: var(--ratio-landscape);
  overflow: hidden;
}

.drop-feature-date {
  position: absolute;
  top: 12px;
  left: 16px;
  z-index: 2;
  display: grid;
  gap: 2px;
  padding: 8px 12px;
  background: var(--white);
  color: var(--black);
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
  text-align: center;
  border: 1px solid var(--black);
}

.drop-feature-date strong {
  display: block;
  font-weight: 900;
}

.drop-feature-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform var(--duration-medium) var(--ease-out);
}

.drop-feature-card:hover .drop-feature-media img {
  transform: scale(1.02);
}

.drop-feature-body {
  display: grid;
  gap: 8px;
  padding: 0 4px 16px;
}

.drop-feature-body .brand-collab {
  margin-top: 0;
  color: var(--muted);
}

.drop-feature-body h3 {
  margin: 0;
  font-size: 22px;
  text-transform: none;
}

.drop-feature-body .button {
  width: max-content;
  margin-top: 8px;
}

/* --------------------------------------------------------------------------
   12. Products grid
   -------------------------------------------------------------------------- */
.public-products {
  margin-bottom: 32px;
}

.plp-action-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.plp-action-bar > span {
  margin-right: auto;
  font-size: clamp(22px, 2.8vw, 32px);
  line-height: 1;
  color: var(--black);
}

.plp-action-bar .button {
  min-height: 48px;
  padding: 0 32px;
  font-size: 13px;
}

.product-grid,
.public-products.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.product-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 240px;
  gap: 16px;
  margin-bottom: 40px;
  padding-bottom: 12px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
}

.product-rail .product-card {
  scroll-snap-align: start;
}

@media (max-width: 620px) {
  .product-rail {
    grid-auto-columns: 46vw;
  }
}

.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 300px;
  padding: 12px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  text-decoration: none;
  overflow: hidden;
}

/* visual area holds the shoe and absolute overlays */
.product-card .product-visual {
  position: relative;
  display: grid;
  place-items: center;
  flex: 1;
  min-height: 160px;
  margin-bottom: 12px;
  padding-bottom: 48px;
}

.product-card .product-label {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  min-height: 28px;
  padding: 0 10px;
}

.product-card .wish {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  display: inline-grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 0;
  background: transparent;
  font-size: 18px;
  cursor: pointer;
}

.product-card .wish svg,
.icon-button svg {
  width: 18px;
  height: 18px;
}

.product-card .shoe {
  margin: 56px auto 0;
  transition: transform var(--duration-medium) var(--ease-out);
}

.product-hover {
  position: absolute;
  right: 12px;
  bottom: 16px;
  left: 12px;
  display: grid;
  grid-template-columns: minmax(42px, 1.2fr) repeat(3, minmax(24px, 1fr));
  gap: 4px;
  align-items: center;
  padding: 6px;
  background: var(--black);
  color: var(--white);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity var(--duration-fast) var(--ease-out), transform var(--duration-fast) var(--ease-out);
}

.product-hover strong,
.product-hover span {
  display: inline-grid;
  min-height: 28px;
  place-items: center;
  font-size: 9px;
  font-weight: 900;
  line-height: 1.05;
  text-transform: uppercase;
}

.product-hover span {
  border: 1px solid var(--dark-line-strong);
}

.product-card:hover .product-hover,
.product-card:focus-visible .product-hover {
  opacity: 1;
  transform: translateY(0);
}

.product-card:hover .shoe,
.product-card:focus-visible .shoe {
  transform: translateY(-4px) scale(1.03);
}

.product-card h3 {
  margin: 0;
  font-size: 12px;
  line-height: 1.05;
  text-transform: uppercase;
}

.product-card .brand-collab {
  margin-top: 0;
  line-height: 1.05;
}

.product-card .product-foot {
  margin-top: auto;
  padding-top: 10px;
}

.event-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.event-list .event-card {
  color: var(--ink);
  padding: 24px;
  display: grid;
  gap: 12px;
  border-top: 1px solid var(--line);
}

.event-list .event-card time {
  display: block;
  font-size: 24px;
  line-height: 1;
}

.event-list .event-card h3 {
  margin: 0 0 8px;
  font-size: clamp(22px, 2.1vw, 28px);
  line-height: 1.05;
  text-transform: none;
}

.event-list .event-card p {
  margin: 0;
  font-size: 20px;
  line-height: 1.2;
}

/* --------------------------------------------------------------------------
   13. Brand collab (cards & PDP)
   -------------------------------------------------------------------------- */
.brand-collab {
  display: block;
  margin-top: 16px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.product-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
}

.product-foot p {
  margin: 0;
  font-size: 14px;
  font-weight: 900;
}

.add-button {
  display: inline-grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid var(--black);
  background: var(--white);
  color: var(--black);
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
}

.add-button:hover {
  background: var(--black);
  color: var(--white);
}

/* --------------------------------------------------------------------------
   14. Events landing + cards
   -------------------------------------------------------------------------- */
.events-page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.34fr);
  gap: clamp(28px, 5vw, 80px);
  align-items: start;
  max-width: 1180px;
  margin: 0 auto 48px;
}

.events-main-column {
  display: grid;
  gap: 28px;
}

.event-hero {
  position: relative;
  display: grid;
  border: 1px solid var(--line);
  background: var(--white);
  overflow: hidden;
}

.event-status {
  display: grid;
  min-height: 24px;
  place-items: center;
  background: var(--black);
  color: var(--white);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.event-hero img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  object-position: center top;
}

.event-hero-meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--white);
  color: var(--black);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.event-hero-body {
  padding: 18px 14px 20px;
  background: var(--white);
}

.event-countdown {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 4px 8px;
  margin: 0;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.event-countdown strong {
  font-size: 11px;
  font-weight: 900;
}

.event-countdown em {
  font-style: normal;
  color: var(--muted);
  font-size: 10px;
}

.event-hero-body h2 {
  font-size: clamp(22px, 3vw, 36px);
  line-height: 1.05;
  margin-bottom: 16px;
  text-transform: none;
}

.event-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.event-location {
  padding: 24px 0 0;
  border: 1px solid var(--line);
  border-width: 1px 0 0;
  background: var(--white);
}

.event-location h3 {
  margin-bottom: 8px;
  font-size: 22px;
  text-transform: uppercase;
}

.event-location p {
  margin-bottom: 16px;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   15. App CTA
   -------------------------------------------------------------------------- */
.event-aside-ad {
  position: sticky;
  top: 88px;
  min-height: 420px;
  overflow: hidden;
}

.event-aside-ad img {
  width: 100%;
  min-height: 420px;
  object-fit: cover;
  object-position: center top;
}

/* --------------------------------------------------------------------------
   16. Drops landing
   -------------------------------------------------------------------------- */
.drops-hero {
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.drops-hero h2 {
  font-size: clamp(32px, 5vw, 64px);
  text-transform: uppercase;
}

.drops-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 48px;
}

.drop-card {
  position: relative;
  display: grid;
  gap: 8px;
  padding: 24px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
}

.drop-date {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 3;
  display: grid;
  gap: 2px;
  padding: 8px 12px;
  background: var(--black);
  color: var(--white);
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
  text-align: center;
}

.drop-date small {
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.06em;
}

.drop-card .shoe.large {
  position: relative;
  z-index: 1;
  margin: 84px auto 16px;
}

.drop-card h3 {
  margin: 0 0 16px;
  font-size: 20px;
  text-transform: uppercase;
}

.drop-card .brand-collab {
  margin-top: 0;
  color: var(--black);
}

/* --------------------------------------------------------------------------
   23. Newsletter modal
   -------------------------------------------------------------------------- */
.newsletter-modal {
  position: fixed;
  right: 32px;
  bottom: 32px;
  z-index: 50;
  display: grid;
  gap: 16px;
  width: min(360px, calc(100vw - 48px));
  padding: 24px;
  border: 1px solid var(--black);
  background: var(--white);
  box-shadow: var(--shadow);
  transform: translateY(140%);
  transition: transform var(--duration-medium) var(--ease-out);
}

.newsletter-modal.show {
  transform: translateY(0);
}

.newsletter-modal h3 {
  margin: 0;
  font-size: 20px;
  text-transform: uppercase;
}

.newsletter-modal p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.newsletter-modal form {
  display: grid;
  gap: 8px;
}

.newsletter-modal input {
  min-height: 40px;
  border: 1px solid var(--black);
  padding: 0 12px;
  font-size: 13px;
}

.newsletter-modal .close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 24px;
  height: 24px;
  border: 0;
  background: transparent;
  font-size: 20px;
  cursor: pointer;
}

/* --------------------------------------------------------------------------
   17. Filter page
   -------------------------------------------------------------------------- */
.filter-page {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  gap: 24px;
}

.filter-sidebar {
  align-self: start;
  padding: 24px;
  border: 1px solid var(--line);
  background: var(--white);
}

/* --------------------------------------------------------------------------
   18. PDP (Product Detail Page)
   -------------------------------------------------------------------------- */
.public-pdp {
  margin-top: 0;
  grid-template-columns: minmax(0, 1.3fr) minmax(360px, 0.7fr);
  gap: 48px;
  padding: 0;
  border: 0;
  background: transparent;
}

.pdp-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.pdp-breadcrumb a {
  color: var(--muted);
}

.pdp-breadcrumb a:hover {
  color: var(--black);
}

.pdp-breadcrumb span:last-child {
  color: var(--black);
}

.pdp-gallery-stack {
  display: grid;
  gap: 8px;
}

.public-pdp .pdp-gallery {
  position: relative;
  background: var(--soft);
  border: 1px solid var(--line);
  overflow: hidden;
}

.public-pdp .pdp-gallery img {
  width: 100%;
  height: 100%;
  min-height: 600px;
  aspect-ratio: var(--ratio-square);
  object-fit: cover;
  object-position: center top;
}

.pdp-zoom {
  position: absolute;
  bottom: 16px;
  right: 16px;
  display: inline-grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid var(--black);
  background: var(--white);
  color: var(--black);
  font-size: 18px;
  cursor: pointer;
}

.public-pdp .thumb-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  padding: 0;
}

.public-pdp .thumb-row span {
  aspect-ratio: var(--ratio-square);
  border: 1px solid var(--line);
  background: var(--soft);
  cursor: pointer;
}

.public-pdp .thumb-row span.active {
  border-color: var(--black);
  border-width: 2px;
}

.pdp-info {
  display: grid;
  align-content: start;
  gap: 16px;
}

.pdp-info .brand-collab {
  margin-top: 0;
  color: var(--black);
  font-size: 11px;
}

.pdp-info h2 {
  margin: 0;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.05;
  text-transform: uppercase;
}

.pdp-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.pdp-price-row .price {
  margin: 0;
  font-size: 28px;
  font-weight: 900;
}

.pdp-desc {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.pdp-section {
  display: grid;
  gap: 12px;
}

.pdp-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.pdp-section-head strong {
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.pdp-section-head a {
  font-size: 11px;
}

.pdp-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 48px;
  gap: 8px;
}

.pdp-actions .icon-button {
  width: 48px;
  height: 48px;
  font-size: 20px;
}

.pdp-meta {
  display: grid;
  gap: 0;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.pdp-meta li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  font-size: 12px;
}

.pdp-meta li:last-child {
  border-bottom: 1px solid var(--line);
}

.pdp-meta strong {
  font-weight: 900;
  text-transform: uppercase;
}

.pdp-meta span {
  color: var(--muted);
}

.pdp-feature {
  margin: 64px 0 48px;
  padding: 48px 32px;
  background: var(--soft);
  border: 1px solid var(--line);
  text-align: center;
}

.pdp-feature h2 {
  font-size: clamp(36px, 5vw, 72px);
  line-height: 1;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.pdp-feature p {
  max-width: 640px;
  margin: 0 auto;
  color: var(--muted);
}

.pdp-feature .eyebrow {
  margin-bottom: 16px;
}

/* --------------------------------------------------------------------------
   19. Shop landing
   -------------------------------------------------------------------------- */
.shop-cat-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  margin-bottom: 56px;
}

.shop-cat-tile {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 4px;
  min-height: 160px;
  padding: 16px;
  border: 1px solid var(--line);
  background: var(--soft);
  color: var(--ink);
  transition: border-color var(--duration-fast) var(--ease-out);
}

.shop-cat-tile:hover {
  border-color: var(--black);
}

.shop-cat-tile .shoe {
  width: 70%;
  height: 64px;
  margin: 0 0 8px;
  transform: skewX(-12deg) scale(0.9);
}

.shop-cat-tile strong {
  font-size: 14px;
  font-weight: var(--weight-bold);
}

@media (max-width: 1024px) {
  .shop-cat-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 620px) {
  .shop-cat-grid { grid-template-columns: repeat(2, 1fr); }
}

.trending-artists {
  margin: 64px 0;
}

.trending-artists .public-section-header {
  margin-top: 0;
}

.trending-artist-row {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
}

.trending-artist {
  display: grid;
  gap: 12px;
  text-align: center;
  color: var(--ink);
}

.trending-artist-avatar {
  aspect-ratio: var(--ratio-square);
  border-radius: 50%;
  background: linear-gradient(135deg, #1a1a1a, #888);
  border: 1px solid var(--line);
}

.trending-artist strong {
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

body[data-page="shop"] .public-section-header {
  margin: 48px 0 24px;
  padding-bottom: 16px;
}

body[data-page="shop"] .trending-artists {
  margin: 48px 0;
}

/* --------------------------------------------------------------------------
   24. Footer
   -------------------------------------------------------------------------- */
.public-footer {
  display: grid;
  gap: 32px;
  padding: 48px max(clamp(24px, 4vw, 64px), calc((100% - 1440px) / 2));
  background: var(--black);
  color: var(--white);
}

/* Top row: brand + social */
.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--dark-line);
}

.footer-brand {
  display: inline-flex;
  align-items: center;
}

.footer-brand img {
  width: clamp(80px, 8vw, 120px);
  height: auto;
  display: block;
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-social > span {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--dark-text-soft);
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.social-links a {
  display: inline-grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  background: var(--white);
  color: var(--black);
}

.social-links svg {
  width: 16px;
  height: 16px;
}

.social-links a:hover {
  background: #d7d7d7;
}

/* Main row: 4-column menu + signup */
.footer-main {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
}

.footer-col h3 {
  margin: 0 0 16px;
  color: var(--white);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: capitalize;
}

.footer-col a {
  display: block;
  padding: 4px 0;
  color: var(--dark-text-soft);
  font-size: 13px;
  line-height: 1.4;
}

.footer-col a:hover {
  color: var(--white);
}

/* Newsletter signup */
.footer-signup h3 {
  margin-bottom: 16px;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--white);
}

.public-footer form {
  display: grid;
  gap: 12px;
}

.public-footer form div {
  display: flex;
  gap: 0;
  border: 1px solid var(--dark-line-strong);
}

.public-footer input {
  min-width: 0;
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--white);
  padding: 0 16px;
  min-height: 48px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.public-footer input::placeholder {
  color: #8a8a8a;
}

.footer-signup .button {
  min-height: 48px;
  min-width: 120px;
  padding: 0 20px;
  border: 0;
  background: var(--white);
  color: var(--black);
  font-size: 11px;
}

.footer-fineprint {
  margin: 0;
  color: var(--dark-text-muted);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Bottom row: legal links + country */
.footer-bottom {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 16px 28px;
  flex-wrap: wrap;
  padding-top: 24px;
  border-top: 1px solid var(--dark-line);
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 28px;
}

.footer-legal a {
  color: var(--dark-text-soft);
  font-size: 12px;
}

.footer-legal a:hover {
  color: var(--white);
}

/* Disclaimer row */
.footer-disclaimer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--dark-line);
}

.footer-disclaimer p {
  max-width: 760px;
  margin: 0;
  color: var(--dark-text-muted);
  font-size: 11px;
  font-weight: 400;
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   21. Detail layouts (article / artist / drop / event detail)
   -------------------------------------------------------------------------- */
.detail-article {
  max-width: 980px;
  margin: 0 auto;
}

/* The related rail sits outside <article>, so give it the same column or its
   heading and cards start further left than the story above them. */
.article-related {
  max-width: 980px;
  margin: 0 auto;
}

/* --------------------------------------------------------------------------
   22. Article supporting modules (YouTube / Vimeo / Spotify / SoundCloud)
   -------------------------------------------------------------------------- */
.article-supporting-modules {
  display: grid;
  gap: 16px;
  max-width: 980px;
  margin: 56px auto 0;
}

.article-supporting-modules .eyebrow {
  margin: 0 0 8px;
  color: var(--black);
}

.media-embed {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr;
  border: 1px solid var(--line);
  background: var(--white);
  overflow: hidden;
}

.media-embed-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--soft);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.media-embed-head .platform-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  background: var(--black);
  color: var(--white);
}

.media-embed-head .platform-tag.youtube { background: #ff0000; }
.media-embed-head .platform-tag.vimeo { background: #1ab7ea; }
.media-embed-head .platform-tag.spotify { background: #1db954; }
.media-embed-head .platform-tag.soundcloud { background: #ff5500; }
.media-embed-head .platform-tag.podcast { background: var(--black); }

.media-embed-body {
  position: relative;
  aspect-ratio: var(--ratio-wide);
  background: linear-gradient(135deg, #1a1a1a, #3a3a3a);
}

.media-embed-body img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  opacity: 0.7;
}

.media-embed-body .play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  display: inline-grid;
  width: 64px;
  height: 64px;
  place-items: center;
  border-radius: 50%;
  background: var(--white);
  color: var(--black);
  font-size: 24px;
  transform: translate(-50%, -50%);
  cursor: pointer;
}

.media-embed-body .play-button.youtube { background: #ff0000; color: var(--white); }
.media-embed-body .play-button.vimeo { background: #1ab7ea; color: var(--white); }

.podcast-row {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 16px;
  background: var(--black);
  color: var(--white);
}

.podcast-row .cover {
  width: 96px;
  height: 96px;
  background: linear-gradient(135deg, #b50918, #ff4352);
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 900;
}

.podcast-row .meta strong {
  display: block;
  font-size: 16px;
  font-weight: 900;
  text-transform: uppercase;
}

.podcast-row .meta span {
  color: var(--dark-text-soft);
  font-size: 12px;
}

.podcast-row .controls {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
}

.podcast-row .controls button {
  display: inline-grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid var(--dark-line-strong);
  background: transparent;
  color: var(--white);
  cursor: pointer;
}

.podcast-row .progress {
  flex: 1;
  height: 3px;
  background: #333;
  position: relative;
}

.podcast-row .progress::after {
  content: "";
  position: absolute;
  inset: 0 70% 0 0;
  background: var(--white);
}

.soundcloud-row {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 16px;
  background: var(--white);
}

.soundcloud-row .cover {
  width: 96px;
  height: 96px;
  background: linear-gradient(135deg, #ff5500, #ff8a00);
}

.soundcloud-row .waveform {
  display: flex;
  align-items: end;
  gap: 2px;
  height: 50px;
  margin-top: 8px;
}

.soundcloud-row .waveform span {
  flex: 1;
  background: var(--black);
  opacity: 0.6;
}

.soundcloud-row .waveform span:nth-child(odd) { height: 60%; }
.soundcloud-row .waveform span:nth-child(3n) { height: 90%; }
.soundcloud-row .waveform span:nth-child(5n) { height: 40%; }
.soundcloud-row .waveform span:nth-child(7n) { height: 80%; }


.detail-article h1,
.detail-article h2,
.detail-layout h2 {
  margin-bottom: 20px;
  font-size: clamp(26px, 2.6vw, 34px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: var(--letter-tight);
  text-transform: none;
}

.lead {
  max-width: 760px;
  color: var(--muted);
  font-size: clamp(16px, 1.3vw, 18px);
  font-weight: var(--weight-regular);
  line-height: 1.5;
}

.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.article-tags a {
  color: var(--muted);
}

.article-tags a:hover {
  color: var(--black);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Staff credits for outsourced original content (Text / Photo / Video …) —
   sits between the body and the foot tag row. */
.article-credits {
  margin: 40px 0 0;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.credits-heading {
  margin: 0 0 12px;
  font-size: var(--font-eyebrow);
  font-weight: var(--weight-black);
  letter-spacing: var(--letter-wide);
  text-transform: uppercase;
  color: var(--muted);
}

/* Two columns sized to the widest role, so Text / Photography / Translation
   all line their names up however long the desk's labels are. */
.credits-list {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 4px 20px;
  font-size: 14px;
  line-height: 1.7;
}

.credit-role {
  color: var(--muted);
  font-weight: var(--weight-bold);
}

.credit-name {
  color: var(--black);
}

/* A line with no "Role:" prefix spans both columns rather than sitting in
   the name column on its own. */
.credit-name-full {
  grid-column: 1 / -1;
}

/* Foot-of-article tag row ("Read more on:" + pills), as on complex.com */
.article-readmore {
  margin: 32px 0 0;
}

.readmore-label {
  margin: 0 0 12px;
  font-size: var(--font-eyebrow);
  font-weight: var(--weight-black);
  letter-spacing: var(--letter-wide);
  text-transform: uppercase;
  color: var(--muted);
}

.readmore-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
}

.readmore-tags a {
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
  font-weight: var(--weight-bold);
  letter-spacing: var(--letter-wide);
  text-transform: uppercase;
  color: var(--black);
  white-space: nowrap;
}

.readmore-tags a:hover {
  background: var(--black);
  border-color: var(--black);
  color: var(--white);
}

.article-byline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
  margin: 24px 0;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}

.article-byline strong {
  color: var(--black);
  font-weight: var(--weight-bold);
}

.article-share {
  display: flex;
  gap: 8px;
  margin-left: auto;
}

.article-share .icon-button {
  width: 32px;
  height: 32px;
  font-size: 14px;
}

.artist-social {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 24px;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.artist-social-links {
  display: flex;
  gap: 12px;
}

.artist-social-links a {
  display: inline-grid;
  width: 28px;
  height: 28px;
  place-items: center;
  color: var(--white);
  border: 1px solid var(--dark-line-strong);
}

.artist-social-links svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.detail-article > img {
  width: 100%;
  max-height: 560px;
  margin: 32px 0;
  object-fit: cover;
  object-position: center top;
  border: 1px solid var(--line);
}

.article-body {
  display: grid;
  gap: 22px;
  max-width: 100%;
  font-size: 16px;
  line-height: 1.58;
}

.article-body blockquote {
  margin: 16px 0;
  padding: 8px 0 8px 24px;
  border-left: 3px solid var(--black);
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: var(--letter-tight);
  text-transform: none;
}

/* WordPress (Gutenberg) post-body blocks — keeps WP content on the editorial grid */
.article-body img {
  max-width: 100%;
  height: auto;
  border: 1px solid var(--line);
}

.article-body figure {
  margin: 6px 0;
  max-width: 100%;
}

.article-body figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.article-body iframe {
  max-width: 100%;
  border: 0;
}

.article-body iframe[src*="youtube"],
.article-body iframe[src*="vimeo"] {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
}

.article-body .wp-block-embed__wrapper {
  position: relative;
}

/* Social embeds rewritten from WP's script-driven blockquotes (see
   wpUpgradeEmbeds). Heights are fixed because the providers' auto-resize
   only runs from the loader script we deliberately don't load. */
/* Left-aligned to match the CMS: Instagram's own markup sets margin: 1px, not
   auto, and the post's images are all alignnone — so the embed shares the left
   edge with the body copy. width + justify-self rather than auto margins,
   because as a grid item an auto-margin box shrink-wraps the iframe's default
   300px intrinsic width instead of filling the column. */
.article-body .wp-embed-frame {
  width: 100%;
  max-width: 540px;
  margin: 8px 0;
  justify-self: start;
}

/* Ratio boxes, because the providers only report a usable height to their own
   loader script. A percentage padding resolves against the width, so the media
   scales with the column while the fixed part covers the header/action chrome.
   Sized for the tallest media each provider allows (Instagram caps at 4:5) —
   any surplus is white on white, where a cut-off post would not be.
   No border for the same reason. */
.article-body .wp-embed-ratio {
  position: relative;
  height: 0;
}

.article-body .wp-embed-ratio > iframe {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: var(--white);
}

/* 4:5 media + ~200px of header, action row and comment line (measured at 360px) */
.article-body .wp-embed-instagram .wp-embed-ratio { padding-bottom: calc(125% + 200px); }
.article-body .wp-embed-twitter .wp-embed-ratio { padding-bottom: calc(100% + 220px); }
.article-body .wp-embed-tiktok .wp-embed-ratio { padding-bottom: calc(178% + 160px); }

/* Shown only when a post id can't be read out of the embed markup. */
.wp-embed-fallback {
  display: block;
  padding: 16px 20px;
  border: 1px solid var(--line);
  font-size: 13px;
  font-weight: var(--weight-bold);
  letter-spacing: var(--letter-wide);
  text-transform: uppercase;
  text-align: center;
}

.wp-embed-fallback:hover {
  background: var(--black);
  border-color: var(--black);
  color: var(--white);
}

.article-body h3,
.article-body h4 {
  margin: 10px 0 0;
  font-weight: 700;
  letter-spacing: var(--letter-tight);
  text-transform: none;
}

.article-body h3 {
  font-size: clamp(19px, 2vw, 24px);
}

.article-body h4 {
  font-size: 17px;
}

.article-body ul,
.article-body ol {
  margin: 0;
  padding-left: 24px;
  display: grid;
  gap: 8px;
}

.article-body a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 28px;
  align-items: start;
}

.detail-panel {
  padding: 24px;
  border: 1px solid var(--line);
  background: var(--soft);
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.artist-detail > img {
  width: 100%;
  min-height: 420px;
  object-fit: cover;
  object-position: center top;
  border: 1px solid var(--line);
}

.brand-spotlight,
.liner-notes,
.event-handoff,
.artist-follow,
.email-capture,
.drop-state {
  margin-top: 64px;
  padding: 32px;
  border: 1px solid var(--line);
}

.brand-spotlight {
  background: var(--soft);
}

.brand-spotlight > div:first-child,
.event-handoff > div:first-child,
.artist-follow > div:first-child,
.email-capture > div:first-child,
.drop-state > div:first-child {
  max-width: 840px;
  margin-bottom: 24px;
}

.liner-notes div,
.handoff-grid {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 16px 24px;
}

.liner-notes strong,
.handoff-grid strong {
  font-size: 22px;
  font-weight: var(--weight-bold);
}

.handoff-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.handoff-grid div {
  display: grid;
  gap: 8px;
  padding: 24px;
  border: 1px solid var(--line);
}

.artist-dark {
  margin: -64px -64px 0;
  padding: 64px;
  background: var(--black);
  color: var(--white);
}

.artist-dark .lead {
  color: #d8d8d8;
}

.artist-follow,
.drop-state {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: var(--black);
  color: var(--white);
}

.email-capture {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 24px;
  align-items: end;
}

.email-capture form {
  display: flex;
  gap: 8px;
}

.email-capture input {
  min-width: 0;
  width: 100%;
  border: 1px solid var(--black);
  padding: 0 12px;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

/* 25. Large desktops (1600px and up) */
@media (min-width: 1600px) {
  .public-hero .hero-copy h1,
  .public-hero .hero-copy h2 {
    font-size: clamp(44px, 3vw, 54px);
  }

  .public-section-header h2,
  .public-section-header h1 {
    font-size: clamp(26px, 1.8vw, 32px);
  }

  .public-products.product-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .home-feature-grid > div,
  .compact-story-row,
  .video-story-row {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

/* 26. Tablet (1024px and below) */
@media (max-width: 1024px) {
  .public-nav {
    gap: 16px;
  }

  .drops-grid,
  .events-page-layout,
  .public-pdp,
  .home-drops-grid {
    grid-template-columns: 1fr;
  }

  .home-shop-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .trending-artist-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .public-pdp .pdp-gallery img {
    min-height: 480px;
  }

  .pdp-actions {
    grid-template-columns: minmax(0, 1fr) 48px;
  }

  .editorial-grid,
  .home-feature-trend,
  .web-banner,
  .filter-page,
  .public-pdp,
  .event-list,
  .detail-layout,
  .handoff-grid,
  .email-capture {
    grid-template-columns: 1fr;
  }

  .event-aside-ad {
    position: static;
    min-height: 260px;
  }

  .event-aside-ad img {
    min-height: 260px;
    max-height: 360px;
  }

  .artist-dark {
    margin: -24px -24px 0;
    padding: 24px;
  }

  .story-card,
  .story-card-large {
    grid-template-columns: 1fr;
  }

  .compact-story-row,
  .home-feature-grid > div,
  .video-story-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .web-banner {
    grid-template-columns: 1fr;
  }

  .public-products.product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

}

/* 27. Mobile (768px and below) */
@media (max-width: 768px) {
  .nav-row {
    min-height: 52px;
    padding: 0 16px;
  }

  .menu-trigger {
    display: inline-flex;
  }

  .nav-cats {
    display: none;
  }

  .nav-search {
    display: none;
  }

  .nav-tools .nav-search-mobile {
    display: inline-flex;
  }

  .brand-logo {
    height: 24px;
  }

  .brand-logo img {
    height: 19px;
  }

  .nav-tools {
    gap: 9px;
  }

  .nav-tools button {
    min-width: 26px;
    min-height: 26px;
  }

  .nav-tools svg {
    width: 16px;
    height: 16px;
  }

  .footer-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .footer-main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px;
  }

  .footer-signup {
    grid-column: 1 / -1;
  }

  .footer-bottom,
  .footer-disclaimer {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* 28. Small mobile (480px and below) */
@media (max-width: 480px) {
  :root {
    font-size: 15px;
  }

  .trending-artist-row,
  .drops-grid,
  .home-shop-grid,
  .latest-row {
    grid-template-columns: 1fr;
  }

  .pdp-feature {
    padding: 32px 16px;
  }

  .event-hero img {
    height: 320px;
  }

  .event-countdown strong {
    font-size: 11px;
  }

  .newsletter-modal {
    right: 16px;
    bottom: 16px;
    width: calc(100vw - 32px);
    padding: 20px;
  }

  .public-section-header h2,
  .public-section-header h1 {
    font-size: clamp(22px, 6vw, 28px);
  }

  .hero-copy h1,
  .hero-copy h2 {
    font-size: clamp(28px, 8vw, 38px);
    line-height: 1.18;
  }

  .article-body {
    font-size: 16px;
  }

  .article-body blockquote {
    font-size: clamp(22px, 6vw, 32px);
  }

  .public-products.product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .public-products .product-card {
    min-height: 220px;
    padding: 12px;
  }

  .compact-story-row,
  .home-feature-grid > div,
  .video-story-row {
    grid-template-columns: 1fr;
  }

  .media-embed-head {
    font-size: 10px;
    padding: 8px 10px;
  }

  .podcast-row,
  .soundcloud-row {
    grid-template-columns: 72px minmax(0, 1fr);
    padding: 12px;
  }

  .podcast-row .cover,
  .soundcloud-row .cover {
    width: 72px;
    height: 72px;
  }
}

/* 29. Extra small (620px and below — legacy fine-tuning) */
@media (max-width: 620px) {
  .public-nav {
    overflow-x: auto;
  }

  .public-hero {
    min-height: 560px;
  }

  body[data-page="homepage"] .public-hero {
    min-height: 600px;
  }

  .hero-copy {
    padding: 20px 16px 72px;
  }

  .hero-copy h1,
  .hero-copy h2 {
    font-size: clamp(30px, 9vw, 42px);
    line-height: 1.18;
  }

  .hero-sub {
    margin-bottom: 20px;
    font-size: 15px;
  }

  .hero-actions {
    gap: 12px;
  }

  .hero-actions .button {
    min-height: 52px;
    padding: 0 20px;
    font-size: 12px;
  }

  .public-main {
    /* Keep the full-bleed breakout math in sync with the smaller mobile
       padding. Leaving --main-pad at 24px made the hero 8px wider than the
       viewport on each side and introduced horizontal scrolling. */
    --main-pad: 16px;
    padding: 16px;
  }

  /* keep the full-bleed video band aligned to the 16px mobile gutter */
  .video-stories {
    margin-left: -16px;
    margin-right: -16px;
    padding-left: 16px;
    padding-right: 16px;
  }

  .subnav-strip {
    padding: 12px 16px 0;
  }

  .page-context {
    align-items: flex-start;
    flex-direction: column;
    padding: 10px 16px 0;
  }

  .public-section-header,
  .drop-strip,
  .artist-follow,
  .drop-state {
    align-items: flex-start;
    flex-direction: column;
  }

  .email-capture form {
    flex-direction: column;
  }

  .story-card-large img,
  .story-card img {
    height: 260px;
  }

  .compact-story-row,
  .home-feature-grid > div,
  .video-story-row,
  .latest-row {
    grid-template-columns: 1fr;
  }

  .web-banner {
    margin-bottom: 30px;
  }

  .banner-copy {
    padding: 20px;
  }

  .banner-visual {
    min-height: 320px;
  }

  .banner-arrow {
    opacity: 1;
  }

  .product-hover {
    position: static;
    margin-top: 12px;
    opacity: 1;
    transform: none;
  }

  .home-feature-trend,
  .video-stories {
    margin-top: 32px;
  }

  .video-stories {
    padding: 20px 16px;
  }

  .latest-row img {
    max-height: 220px;
  }

  .public-footer form div {
    flex-direction: column;
  }

  .public-footer {
    padding: 28px 16px 24px;
  }

  .footer-main {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------------------------------
   30. Account link · article favorites · My Page
   -------------------------------------------------------------------------- */
.nav-account {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 26px;
  min-height: 26px;
  color: var(--black);
}
.nav-account.active {
  color: var(--red);
}

/* Signed-in reader's name beside the person icon */
.nav-account svg {
  flex: none;
}

.nav-account-name {
  max-width: 10em;
  overflow: hidden;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Tight header space on phones — icon only */
@media (max-width: 700px) {
  .nav-account-name {
    display: none;
  }
}

/* Favorite heart overlay on editorial cards */
.fav-toggle {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--ink);
  cursor: pointer;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.18);
  transition: background var(--duration-fast) var(--ease-out),
    color var(--duration-fast) var(--ease-out),
    transform var(--duration-fast) var(--ease-out);
}
.fav-toggle:hover {
  background: var(--white);
  transform: scale(1.06);
}
.fav-toggle svg {
  width: 18px;
  height: 18px;
}
.fav-toggle.is-saved {
  color: var(--red);
  background: var(--white);
}
.fav-toggle.is-saved svg {
  fill: var(--red);
  stroke: var(--red);
}

/* Inline heart on the article detail byline */
.fav-toggle-btn {
  cursor: pointer;
  transition: color var(--duration-fast), border-color var(--duration-fast);
}
.fav-toggle-btn.is-saved {
  color: var(--red);
  border-color: var(--red);
}
.fav-toggle-btn.is-saved svg {
  fill: var(--red);
  stroke: var(--red);
}

/* Welcome / login screen */
.auth-shell {
  display: flex;
  justify-content: center;
  padding: clamp(24px, 5vw, 64px) 0;
}
.auth-card {
  width: min(460px, 100%);
  padding: clamp(28px, 4vw, 44px);
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--white);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.06);
  text-align: center;
}
.auth-logo {
  display: inline-flex;
  height: 30px;
  margin-bottom: 24px;
}
.auth-logo img {
  height: 100%;
  width: auto;
}
.auth-title {
  margin: 0 0 10px;
  font-size: 28px;
  font-weight: var(--weight-heavy);
  letter-spacing: var(--letter-tight);
}
.auth-sub {
  margin: 0 auto 26px;
  max-width: 340px;
  color: var(--muted);
  font-size: 15px;
  line-height: var(--line-relaxed);
}
.auth-providers {
  display: grid;
  gap: 12px;
}
.auth-provider {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 52px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  font-size: 15px;
  font-weight: var(--weight-bold);
  cursor: pointer;
  transition: border-color var(--duration-fast), background var(--duration-fast);
}
.auth-provider:hover {
  border-color: var(--ink);
  background: var(--soft);
}
.auth-provider-icon {
  position: absolute;
  left: 18px;
  display: inline-flex;
}
.auth-provider-icon svg {
  width: 22px;
  height: 22px;
}
/* Brand-colored marks (Google's icon carries its own colors). The X/FB/LINE
   glyphs use fill: currentColor, so coloring the icon wrapper is enough. */
.auth-facebook .auth-provider-icon {
  color: #1877f2;
}
.auth-line .auth-provider-icon {
  color: #06c755;
}
.auth-x .auth-provider-icon {
  color: #000;
}
.auth-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 22px 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: var(--weight-bold);
  text-transform: uppercase;
}
.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}
.auth-form {
  display: grid;
  gap: 16px;
  text-align: left;
}
.auth-field {
  position: relative;
  display: grid;
  gap: 6px;
}
.auth-field-label {
  font-size: 12px;
  font-weight: var(--weight-bold);
  color: var(--ink);
}
.auth-field input {
  width: 100%;
  height: 52px;
  padding: 0 46px 0 14px;
  /* The border is the only thing delineating this field, so it needs the 3:1
     control-boundary token rather than the faint decorative rule. */
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  font-size: 15px;
  outline: none;
  transition: border-color var(--duration-fast);
}
.auth-field input:focus {
  border-color: var(--ink);
}
.auth-reveal {
  position: absolute;
  right: 10px;
  bottom: 8px;
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}
.auth-reveal svg {
  width: 20px;
  height: 20px;
}
.auth-reveal.is-on {
  color: var(--ink);
}
.auth-error {
  margin: 0;
  color: var(--red);
  font-size: 13px;
  font-weight: var(--weight-bold);
}
.auth-reset {
  justify-self: start;
  color: var(--ink);
  font-size: 13px;
  font-weight: var(--weight-bold);
  text-decoration: underline;
}
.auth-submit {
  min-height: 52px;
  margin-top: 4px;
  font-size: 14px;
}
.auth-fineprint {
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: var(--line-relaxed);
}

/* Signed-in dashboard */
.mypage {
  max-width: 1040px;
  margin: 0 auto;
}
.mypage-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 24px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--line);
}
.mypage-head h1 {
  margin: 6px 0 4px;
  font-size: clamp(26px, 3.4vw, 40px);
  font-weight: var(--weight-heavy);
  letter-spacing: var(--letter-tight);
}
.mypage-email {
  color: var(--muted);
  font-size: 14px;
}
.mypage-favs-head {
  align-items: baseline;
}
.mypage-fav-count {
  color: var(--muted);
  font-size: 13px;
  font-weight: var(--weight-bold);
}
.mypage-favs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 8px;
}
.saved-card {
  position: relative;
}
.saved-card-link {
  display: block;
  color: var(--ink);
}
.saved-card .card-cat {
  margin-top: 12px;
}
.saved-card h3 {
  margin-top: 4px;
  font-size: 17px;
  font-weight: var(--weight-bold);
  line-height: var(--line-snug);
}
.saved-remove {
  opacity: 1;
}

/* Empty favorites state */
.mypage-empty {
  grid-column: 1 / -1;
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 56px 24px;
  border: 1px dashed var(--line);
  border-radius: 14px;
  text-align: center;
}
.mypage-empty-icon {
  display: inline-grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 8px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--muted);
}
.mypage-empty-icon svg {
  width: 26px;
  height: 26px;
}
.mypage-empty-title {
  font-size: 18px;
  font-weight: var(--weight-bold);
}
.mypage-empty-sub {
  color: var(--muted);
  font-size: 14px;
}
.mypage-empty .button {
  margin-top: 14px;
}

@media (max-width: 768px) {
  .mypage-favs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }
  .mypage-head {
    flex-direction: column;
  }
}
@media (max-width: 480px) {
  .mypage-favs {
    grid-template-columns: 1fr;
  }
  .auth-card {
    border: 0;
    box-shadow: none;
    padding: 8px 4px 24px;
  }
}

/* --------------------------------------------------------------------------
   31. Article sharing · site search
   -------------------------------------------------------------------------- */
.article-share {
  flex-wrap: wrap;
}
.article-share .share-btn,
.article-share .share-native {
  color: var(--ink);
}
.article-share .share-btn:hover,
.article-share .share-native:hover {
  background: var(--ink);
  color: var(--white);
}

/* Search results */
.search-head {
  margin-top: 8px;
}
.search-count {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}
.search-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 8px;
}
.search-empty {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 56px 24px;
  border: 1px dashed var(--line);
  border-radius: 14px;
  text-align: center;
}
.search-empty-title {
  font-size: 18px;
  font-weight: var(--weight-bold);
}
.search-empty-sub {
  color: var(--muted);
  font-size: 14px;
}
.search-empty .button {
  margin-top: 14px;
}

/* 404.html and a dead /article?slug=… — same dead-end, same treatment. */
.not-found {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 96px 24px 120px;
  text-align: center;
}
.not-found h1 {
  max-width: 640px;
  font-size: clamp(26px, 3vw, 38px);
  font-weight: var(--weight-bold);
  line-height: 1.25;
  letter-spacing: var(--letter-tight);
}
.not-found-message {
  max-width: 520px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}
.not-found-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 18px;
}

@media (max-width: 768px) {
  .search-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }

  /* Mobile: the search icon reveals a full-width search bar that overlays the
     header (fixed, so it stays put regardless of scroll). The toggle sits on
     top as a close button. */
  body.search-open .nav-search {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: auto;
    height: 53px;
    margin: 0;
    padding: 0 56px 0 16px;
    border-radius: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    z-index: 25;
  }

  body.search-open .nav-search-mobile {
    position: fixed;
    top: 0;
    right: 12px;
    height: 53px;
    z-index: 26;
  }
}
@media (max-width: 480px) {
  .search-grid {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------------------------------
   32. Legal pages (terms / privacy / cookies) + sitemap
   -------------------------------------------------------------------------- */
.legal-page {
  max-width: 760px;
  margin: 0 auto;
  padding-bottom: 24px;
}
.legal-head {
  margin: 8px 0 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--black);
}
.legal-head h1 {
  margin: 6px 0 10px;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: var(--weight-heavy);
  letter-spacing: var(--letter-tight);
}
.legal-updated {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}
.legal-lead {
  margin: 0 0 12px;
  font-size: 15px;
  line-height: var(--line-relaxed);
  color: var(--ink);
}
.legal-page section {
  margin-top: 32px;
}
.legal-page h2 {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: var(--weight-bold);
  line-height: 1.3;
}
.legal-page p,
.legal-page li {
  color: #333;
  font-size: 14px;
  line-height: 1.9;
}
.legal-page p {
  margin: 0 0 8px;
}
.legal-page ul {
  margin: 0;
  padding-left: 22px;
}
.legal-page li {
  margin: 4px 0;
}
.legal-page a {
  color: var(--black);
  font-weight: var(--weight-bold);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.legal-links {
  margin-top: 40px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

/* Cookie tables */
.legal-table-wrap {
  overflow-x: auto;
}
.legal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.legal-table th,
.legal-table td {
  padding: 10px 14px;
  border: 1px solid var(--line);
  text-align: left;
  line-height: 1.6;
  vertical-align: top;
}
.legal-table th {
  background: var(--soft);
  font-weight: var(--weight-bold);
  white-space: nowrap;
}
.legal-table code {
  font-size: 12px;
  background: var(--soft);
  padding: 2px 6px;
  border-radius: 4px;
}

/* Sitemap */
.sitemap-page {
  max-width: 1040px;
}
.sitemap-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.sitemap-group h2 {
  margin: 0 0 8px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--black);
  font-size: 15px;
  font-weight: var(--weight-heavy);
  letter-spacing: 0.02em;
}
.sitemap-group a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 2px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-size: 14px;
  font-weight: var(--weight-bold);
  text-decoration: none;
}
.sitemap-group a svg {
  width: 16px;
  height: 16px;
  color: var(--muted);
  transition: transform var(--duration-fast) var(--ease-out);
}
.sitemap-group a:hover svg {
  transform: translateX(3px);
  color: var(--black);
}

/* Fineprint links on the auth card */
.auth-fineprint a {
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}

@media (max-width: 768px) {
  .sitemap-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}
