/* ── PAGE HEADER ─────────────────────────────────── */
.dp-header {
  background: var(--dark);
  border-bottom: 1px solid rgba(255,255,255,.07);
  padding: 40px 0 36px;
  position: relative;
  overflow: hidden;
}
.dp-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 22px 22px;
  pointer-events: none;
}
.dp-header::after {
  content: '';
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, var(--red), transparent);
}
.dp-header > * { position: relative; z-index: 1; }

.dp-bread {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .68rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255,255,255,.3);
  margin-bottom: 20px;
}
.dp-bread a {
  color: rgba(255,255,255,.35);
  text-decoration: none;
  transition: color .2s;
}
.dp-bread a:hover { color: rgba(255,255,255,.7); }
.dp-bread span:last-child { color: rgba(255,255,255,.6); }

.dp-head-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}
.dp-h1 {
  font-family: "Instrument Serif", serif;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  color: #fff;
  line-height: 1.1;
  margin-bottom: 8px;
}
.dp-h1-sub {
  font-size: .74rem;
  color: rgba(255,255,255,.3);
  letter-spacing: .06em;
}

/* ── BODY ────────────────────────────────────────── */
.dp-body {
  padding: 0 0 80px;
  background: var(--bg);
}

.dp-list {
  border: 1px solid var(--rule);
  border-top: none;
}

/* ── DEPARTMENT ROW ──────────────────────────────── */
.dp-row {
  background: var(--white);
  border-bottom: 1px solid var(--rule);
  transition: background .15s;
}
.dp-row:last-child { border-bottom: none; }
.dp-row:hover { background: #fdfcfb; }

.dp-row-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 28px 18px;
  border-bottom: 1px solid var(--rule-lt);
  gap: 20px;
}
.dp-row-left {
  display: flex;
  align-items: center;
  gap: 18px;
}
.dp-row-n {
  font-family: "Instrument Serif", serif;
  font-size: 1.55rem;
  color: var(--rule);
  line-height: 1;
  flex-shrink: 0;
  min-width: 36px;
  transition: color .2s;
}
.dp-row:hover .dp-row-n { color: var(--red); }
.dp-row-name {
  font-family: "Instrument Serif", serif;
  font-size: 1.25rem;
  color: var(--ink);
  margin-bottom: 4px;
  line-height: 1.2;
}
.dp-row-count {
  font-size: .68rem;
  color: var(--ink-3);
  letter-spacing: .05em;
}
.dp-row-link {
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--red);
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  transition: letter-spacing .2s;
}
.dp-row-link:hover { letter-spacing: .16em; }

/* ── THUMBNAIL GRID — DESKTOP ────────────────────── */
.dp-thumbs {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1px;
  background: var(--rule-lt);
}

.dp-thumb {
  display: block;
  text-decoration: none;
  aspect-ratio: 1 / 1;
  position: relative;
  overflow: hidden;
  background: var(--bg);
}

/* image wrap */
.dp-thumb-img {
  width: 100%;
  height: 100%;
  position: relative;
  z-index: 1;
}
.dp-thumb-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 14px;
  display: block;
  transition: transform .35s, opacity .2s;
}

/* desktop hover overlay — class is dp-thumb-hover */
.dp-thumb-hover {
  position: absolute;
  inset: 0;
  background: rgba(28,28,30,.87);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  opacity: 0;
  transition: opacity .22s;
  z-index: 2;
}
.dp-thumb-hover span {
  font-size: .7rem;
  font-weight: 500;
  color: #fff;
  text-align: center;
  line-height: 1.45;
}
.dp-thumb:hover .dp-thumb-img img {
  transform: scale(1.07);
  opacity: .45;
}
.dp-thumb:hover .dp-thumb-hover { opacity: 1; }

/* mobile label — hidden on desktop */
.dp-thumb-name { display: none; }

/* broken image fallback */
.dp-thumb-img.no-img { background: var(--bg); }
.dp-thumb-img.no-img img { display: none; }
.dp-thumb-img.no-img::after {
  content: '—';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .7rem;
  color: var(--rule);
}

/* ── BOTTOM CTA ──────────────────────────────────── */
.dp-cta {
  background: var(--ink);
  padding: 48px 0;
}
.dp-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.dp-cta-inner h3 {
  font-family: "Instrument Serif", serif;
  font-size: 1.35rem;
  color: #fff;
  margin-bottom: 6px;
}
.dp-cta-inner p {
  font-size: .82rem;
  color: rgba(255,255,255,.38);
  font-weight: 300;
}

/* ── RESPONSIVE ──────────────────────────────────── */
@media(max-width: 1024px) {
  .dp-thumbs { grid-template-columns: repeat(5, 1fr); }
}

@media(max-width: 768px) {
  .dp-head-row { flex-direction: column; align-items: flex-start; }
  .dp-row-head { flex-direction: column; align-items: flex-start; gap: 12px; }
  .dp-cta-inner { flex-direction: column; align-items: flex-start; }
  .dp-thumbs { grid-template-columns: repeat(4, 1fr); }
}

/* ── MOBILE — row layout ─────────────────────────── */
@media(max-width: 640px) {
  .dp-thumbs {
    display: flex;
    flex-direction: column;
    gap: 0;
    background: none;
    border-top: 1px solid var(--rule-lt);
  }

  .dp-thumb {
    aspect-ratio: unset;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--rule-lt);
    background: var(--white);
    overflow: visible;
  }
  .dp-thumb:active { background: var(--bg); }

  /* image box */
  .dp-thumb-img {
    width: 72px;
    height: 72px;
    flex-shrink: 0;
    border-right: 1px solid var(--rule-lt);
    overflow: hidden;
  }
  .dp-thumb-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 8px;
    transition: none;
  }

  /* hide desktop hover overlay */
  .dp-thumb-hover { display: none; }

  /* show category name beside image */
  .dp-thumb-name {
    display: block;
    flex: 1;
    padding: 0 16px;
    font-size: .8rem;
    font-weight: 500;
    color: var(--ink);
    line-height: 1.45;
  }

  /* disable all hover effects */
  .dp-thumb:hover .dp-thumb-img img {
    transform: none;
    opacity: 1;
  }

  .dp-row-head { padding: 18px 20px 14px; }
}

@media(max-width: 480px) {
  .dp-h1 { font-size: 1.6rem; }
  .dp-thumb-img { width: 64px; height: 64px; }
  .dp-thumb-name { font-size: .76rem; }
}
/* ── SHARED THUMBNAIL TILE ───────────────────────── */
.dp-thumb {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  background: var(--white);
  border: none;
  overflow: hidden;
  transition: box-shadow .2s, transform .2s;
  position: relative;
}
.dp-thumb:hover {
  z-index: 2;
  box-shadow: 0 4px 20px rgba(0,0,0,.1);
  transform: translateY(-2px);
}

/* image area — 65% of tile */
.dp-thumb-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  border-bottom: 1px solid var(--rule-lt);
}
.dp-thumb-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 12px;
  display: block;
  transition: transform .3s;
}
.dp-thumb:hover .dp-thumb-img img { transform: scale(1.06); }

/* broken image */
.dp-thumb-img.no-img { background: var(--bg); }
.dp-thumb-img.no-img img { display: none; }
.dp-thumb-img.no-img::after {
  content: '—';
  font-size: .7rem;
  color: var(--rule);
}

/* name label — always visible */
.dp-thumb-label {
  padding: 8px 10px;
  font-size: .68rem;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.35;
  text-align: center;
  background: var(--white);
  border-top: none;
  transition: color .2s, background .2s;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.dp-thumb:hover .dp-thumb-label {
  color: var(--red);
  background: #fdf5f5;
}

/* ── MOBILE — row layout (shared) ────────────────── */
@media(max-width: 640px) {
  .dp-thumb {
    flex-direction: row;
    align-items: center;
    aspect-ratio: unset;
    border-bottom: 1px solid var(--rule-lt);
    transform: none !important;
    box-shadow: none !important;
  }
  .dp-thumb-img {
    width: 68px;
    height: 68px;
    flex-shrink: 0;
    aspect-ratio: unset;
    border-bottom: none;
    border-right: 1px solid var(--rule-lt);
  }
  .dp-thumb-img img { transition: none; }
  .dp-thumb:hover .dp-thumb-img img { transform: none; }
  .dp-thumb-label {
    text-align: left;
    justify-content: flex-start;
    padding: 0 16px;
    font-size: .8rem;
  }
  .dp-thumb:hover .dp-thumb-label {
    color: var(--ink);
    background: var(--white);
  }
  .dp-thumb:active { background: var(--bg); }
  .dpt-row-foot {
      padding: 12px 20px;
  }
  .dpt-row-foot-link {
    font-size: .7rem;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--red);
    text-decoration: none;
    transition: letter-spacing .2s;
  }
}
  .dp-row-foot {
    border-top: 1px solid var(--rule-lt);
    padding: 13px 28px;
    background: var(--bg);
}
.dp-row-foot-link {
    font-size: .7rem;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--red);
    text-decoration: none;
    transition: letter-spacing .2s;
}
