/* =========================================================
   CHOCOLATE TRIPZ — Media & Wholesale Kit (press.html)

   Grids use auto-fill/minmax and type uses clamp(), so the layout
   responds continuously at every width rather than snapping at a few
   breakpoints. The media queries at the bottom handle only genuine
   shape changes (stacking, tap targets, motion), never column counts.
   ========================================================= */

/* ───── HERO STAT RIBBON ───── */

.kit-hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(84px, 1fr));
  gap: var(--space-2) var(--space-3);
  margin: var(--space-4) auto 0;
  padding-top: var(--space-3);
  border-top: 1px solid var(--ct-rule);
  max-width: 620px;
}
.kit-hero-stat { display: flex; flex-direction: column; gap: 2px; text-align: center; min-width: 0; }
.kit-hero-stat .n {
  font-family: 'Anton', sans-serif;
  font-size: clamp(24px, 5vw, 34px);
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--ct-gold);
  font-variant-numeric: tabular-nums;
}
.kit-hero-stat .l {
  font-family: 'Cinzel', serif;
  font-size: clamp(8px, 1.9vw, 10px);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ct-cream-dim);
}
.kit-hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  justify-content: center;
  margin-top: var(--space-4);
}

/* ───── FILTER CHIPS (scroll horizontally when cramped) ───── */

.kit-filters {
  display: flex;
  gap: 8px;
  margin-bottom: var(--space-4);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 2px;
}
.kit-filters::-webkit-scrollbar { display: none; }
.kit-chip {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 42px;
  padding: 11px 20px;
  font-family: 'Cinzel', serif;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ct-cream-dim);
  background: rgba(201, 169, 110, 0.04);
  border: 1px solid var(--ct-rule);
  border-radius: 100px;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.kit-chip:hover { color: var(--ct-cream); border-color: var(--ct-rule-strong); }
.kit-chip[aria-pressed="true"] {
  color: var(--ct-gold);
  border-color: var(--ct-gold);
  background: rgba(201, 169, 110, 0.12);
}
.kit-chip-n {
  font-family: 'DM Sans', sans-serif;
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--ct-gold);
  background: rgba(201, 169, 110, 0.16);
  border-radius: 100px;
  padding: 2px 8px;
  font-variant-numeric: tabular-nums;
}

/* ───── THE COLLECTION — spec card and packshot download in one ───── */

.kit-collection {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr));
  gap: clamp(12px, 1.6vw, 20px);
}
.kit-fcard {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: linear-gradient(180deg, rgba(27, 24, 20, 0.9), rgba(15, 13, 11, 0.97));
  border: 1px solid var(--ct-rule);
  overflow: hidden;
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}
.kit-fcard:hover {
  border-color: var(--ct-rule-strong);
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
}
.kit-fcard[hidden] { display: none; }

.kit-fcard-media {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  padding: 0;
  border: 0;
  border-bottom: 1px solid var(--ct-rule);
  background: #fff;
  cursor: zoom-in;
  overflow: hidden;
}
.kit-fcard-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.kit-fcard:hover .kit-fcard-media img { transform: scale(1.05); }
.kit-fcard-num {
  position: absolute;
  top: 10px;
  left: 12px;
  font-family: 'Anton', sans-serif;
  font-size: 15px;
  letter-spacing: 0.06em;
  color: rgba(20, 18, 16, 0.42);
  font-variant-numeric: tabular-nums;
}

.kit-fcard-body {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: clamp(14px, 1.6vw, 18px);
  flex: 1;
  min-width: 0;
}
.kit-fcard-blend {
  font-family: 'Cinzel', serif;
  font-size: 9px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--ct-gold);
}
.kit-fcard-name {
  margin: 0;
  font-family: 'Cinzel', serif;
  font-size: clamp(14px, 1.5vw, 16px);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ct-cream);
  line-height: 1.25;
  overflow-wrap: break-word;
}
.kit-fcard-desc {
  margin: 0;
  flex: 1;
  font-size: 13px;
  line-height: 1.55;
  color: var(--ct-cream-dim);
}
.kit-fcard-specs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(94px, 1fr));
  gap: 6px 10px;
  margin: 2px 0 0;
  padding-top: 10px;
  border-top: 1px solid var(--ct-rule);
}
.kit-fcard-specs div { min-width: 0; }
.kit-fcard-specs dt {
  margin: 0 0 2px;
  font-family: 'Cinzel', serif;
  font-size: 8.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ct-cream-dim);
}
.kit-fcard-specs dd {
  margin: 0;
  font-size: 12px;
  color: var(--ct-cream);
  font-variant-numeric: tabular-nums;
}
.kit-fcard-dl {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 4px;
  padding: 12px 14px;
  min-height: 46px;
  background: rgba(201, 169, 110, 0.07);
  border: 1px solid var(--ct-rule-strong);
  color: var(--ct-gold);
  font-family: 'Cinzel', serif;
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.kit-fcard-dl:hover { background: var(--ct-gold); border-color: var(--ct-gold); color: #15120e; }
.kit-fcard-dl svg { width: 14px; height: 14px; flex: none; }
.kit-fcard-dl > span:first-of-type { flex: 1; min-width: 0; }
.kit-fcard-dl-meta {
  font-family: 'DM Sans', sans-serif;
  font-size: 10px;
  letter-spacing: 0.04em;
  text-transform: none;
  opacity: 0.75;
  white-space: nowrap;
}

/* ───── BULK DOWNLOAD CARDS ───── */

.kit-dl-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: clamp(12px, 1.6vw, 18px);
  margin-bottom: var(--space-5);
}
.kit-dl-card {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  min-width: 0;
  padding: clamp(16px, 2vw, 22px);
  text-decoration: none;
  background: linear-gradient(135deg, rgba(27, 24, 20, 0.94), rgba(15, 13, 11, 0.98));
  border: 1px solid var(--ct-rule-strong);
  border-top: 2px solid var(--ct-gold-deep);
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}
.kit-dl-card:hover {
  border-top-color: var(--ct-gold);
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45);
}
.kit-dl-card-full { border-top-color: var(--ct-gold); }
.kit-dl-icon {
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--ct-rule-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ct-gold);
  background: rgba(201, 169, 110, 0.06);
}
.kit-dl-icon svg { width: 21px; height: 21px; }
.kit-dl-txt { display: flex; flex-direction: column; gap: 3px; flex: 1; min-width: 0; }
.kit-dl-t1 {
  font-family: 'Cinzel', serif;
  font-size: clamp(13px, 1.4vw, 15px);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ct-cream);
}
.kit-dl-t2 { font-size: 12.5px; line-height: 1.45; color: var(--ct-cream-dim); }
.kit-dl-t3 {
  margin-top: 2px;
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ct-gold);
  font-variant-numeric: tabular-nums;
}
.kit-dl-go {
  flex: none;
  font-family: 'Cinzel', serif;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ct-gold);
  border: 1px solid var(--ct-rule-strong);
  border-radius: 100px;
  padding: 10px 18px;
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.kit-dl-card:hover .kit-dl-go {
  background: var(--ct-gold);
  border-color: var(--ct-gold);
  color: #15120e;
}

/* ───── CATEGORY BARS ───── */

.kit-group[hidden] { display: none; }
.kit-cat-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px var(--space-2);
  margin: var(--space-5) 0 var(--space-3);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--ct-rule);
}
.kit-cat-head {
  margin: 0;
  font-family: 'Cinzel', serif;
  font-size: clamp(12px, 1.4vw, 13px);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ct-gold);
}
.kit-cat-count {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ct-cream-dim);
}

/* ───── LIBRARY THUMBNAILS ───── */

/* 132px min keeps two thumbnails per row even on a 320px phone, and scales
   up to 8+ per row on a wide desktop without any breakpoint. */
.kit-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 132px), 1fr));
  gap: clamp(10px, 1.2vw, 14px);
}
.kit-gallery-wide { grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); }

.kit-tile {
  display: flex;
  flex-direction: column;
  min-width: 0;
  margin: 0;
  background: linear-gradient(180deg, rgba(27, 24, 20, 0.88), rgba(15, 13, 11, 0.96));
  border: 1px solid var(--ct-rule);
  overflow: hidden;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}
.kit-tile:hover {
  border-color: var(--ct-rule-strong);
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.45);
}
.kit-tile[hidden] { display: none; }

.kit-tile-zoom {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  padding: 0;
  border: 0;
  background: var(--ct-base);
  cursor: zoom-in;
  overflow: hidden;
}
.kit-tile-zoom img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}
.kit-tile:hover .kit-tile-zoom img { transform: scale(1.06); }
.kit-tile-zoom-hint {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Cinzel', serif;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(10, 10, 10, 0.55);
  opacity: 0;
  transition: opacity 0.25s ease;
}
.kit-tile-zoom:hover .kit-tile-zoom-hint,
.kit-tile-zoom:focus-visible .kit-tile-zoom-hint,
.kit-fcard-media:hover .kit-tile-zoom-hint,
.kit-fcard-media:focus-visible .kit-tile-zoom-hint { opacity: 1; }

.kit-tile-cap {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
  flex: 1;
  min-width: 0;
}
.kit-tile-txt { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.kit-tile-name {
  font-size: 11.5px;
  line-height: 1.3;
  color: var(--ct-cream);
  overflow-wrap: break-word;
}
.kit-tile-meta {
  font-family: 'DM Sans', sans-serif;
  font-size: 9.5px;
  letter-spacing: 0.05em;
  color: var(--ct-cream-dim);
  font-variant-numeric: tabular-nums;
}
.kit-tile-dl {
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ct-gold);
  border: 1px solid var(--ct-rule-strong);
  background: rgba(201, 169, 110, 0.06);
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.kit-tile-dl svg { width: 14px; height: 14px; }
.kit-tile-dl:hover { background: var(--ct-gold); color: #15120e; transform: scale(1.08); }

/* ───── "ADDITIONAL ANGLES" DISCLOSURE ───── */

.kit-more { margin-top: var(--space-5); }
.kit-more[hidden] { display: none; }
.kit-more-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 13px 24px;
  font-family: 'Cinzel', serif;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ct-gold);
  border: 1px solid var(--ct-rule-strong);
  border-radius: 100px;
  cursor: pointer;
  background: rgba(201, 169, 110, 0.05);
  list-style: none;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.kit-more-toggle::-webkit-details-marker { display: none; }
.kit-more-toggle:hover { border-color: var(--ct-gold); background: rgba(201, 169, 110, 0.1); }
.kit-more-toggle .chev { width: 13px; height: 13px; transition: transform 0.25s ease; }
.kit-more[open] .kit-more-toggle .chev { transform: rotate(180deg); }
.kit-gallery-angles { margin-top: var(--space-3); }

/* ───── USAGE NOTE + EMPTY STATE ───── */

.kit-usage {
  margin-top: var(--space-5);
  padding: var(--space-3);
  border-left: 2px solid var(--ct-rule-strong);
  background: rgba(20, 18, 16, 0.5);
  font-size: 13px;
  line-height: 1.65;
  color: var(--ct-cream-dim);
}
.kit-usage strong { color: var(--ct-cream); }

/* ───── PRINT ─────
   Journalists print the fact sheet. Keep the facts, the boilerplate, the
   retail argument and the flavor specs; drop the 51-thumbnail library,
   every download affordance, and the site chrome. */

@media print {
  @page { size: Letter; margin: 14mm 12mm; }

  html, body { background: #fff !important; color: #000 !important; }
  body::before, body::after { display: none !important; }

  .announce-bar,
  .site-header,
  .site-footer,
  .age-gate,
  .cart-drawer,
  .quickview,
  .drawer-overlay,
  .qv-overlay,
  .toast-wrap,
  .skip-link,
  .kit-lb,
  .kit-hero-cta,
  .kit-filters,
  .kit-dl-row,
  .kit-group,
  .kit-more,
  .kit-fcard-dl,
  .kit-tile-zoom-hint { display: none !important; }

  .page-hero { padding: 0 0 10mm !important; }
  .h-hero { font-size: 24pt !important; color: #000 !important; }
  .h-section { font-size: 14pt !important; color: #000 !important; }
  .eyebrow, .kit-cat-head, .kit-fcard-blend { color: #333 !important; }
  .lead, .body-large, p { color: #000 !important; }

  section { padding: 6mm 0 !important; border-bottom: 1px solid #bbb; }

  .kit-hero-stats { border-top: 1px solid #999 !important; }
  .kit-hero-stat .n { color: #000 !important; }
  .kit-hero-stat .l { color: #333 !important; }

  .kit-collection { grid-template-columns: repeat(2, 1fr) !important; gap: 6mm !important; }
  .kit-fcard {
    background: #fff !important;
    border: 1px solid #999 !important;
    break-inside: avoid;
    page-break-inside: avoid;
  }
  .kit-fcard-media { border-bottom: 1px solid #ccc !important; }
  .kit-fcard-name, .kit-fcard-specs dd { color: #000 !important; }
  .kit-fcard-desc, .kit-fcard-specs dt { color: #333 !important; }

  .press-card, .cta-strip, .kit-usage {
    background: #fff !important;
    border: 1px solid #999 !important;
    break-inside: avoid;
  }
  .kit-usage { border-left: 3px solid #000 !important; color: #000 !important; }

  .fact-list .k { color: #333 !important; }
  .fact-list .v { color: #000 !important; }

  a[href] { color: #000 !important; text-decoration: none; }
  h1, h2, h3 { break-after: avoid; page-break-after: avoid; }
}

/* ───── LIGHTBOX ─────
   Sits as a direct child of <body> on purpose: an ancestor with
   backdrop-filter / transform / filter would become its containing block
   and break position:fixed. Do not nest it inside a wrapper. */

.kit-lb {
  position: fixed;
  inset: 0;
  /* Above consumer.css's .lightbox (9998) so this viewer can never end up
     buried under the site's generic one. */
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(12px, 3vw, 40px);
  background: rgba(6, 5, 4, 0.94);
  animation: kitLbIn 0.22s ease;
}
.kit-lb[hidden] { display: none; }
@keyframes kitLbIn { from { opacity: 0; } to { opacity: 1; } }

.kit-lb-stage {
  display: flex;
  flex-direction: column;
  margin: 0;
  min-width: 0;
  max-width: min(1100px, 100%);
  max-height: 100%;
  border: 1px solid var(--ct-rule-strong);
  background: linear-gradient(180deg, rgba(20, 18, 16, 0.96), rgba(10, 10, 10, 0.98));
}
.kit-lb-img {
  display: block;
  margin: 0 auto;
  max-width: 100%;
  max-height: min(68svh, 68vh);
  width: auto;
  height: auto;
  object-fit: contain;
  background: #fff;
}
.kit-lb-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px var(--space-3);
  padding: 14px 16px;
  border-top: 1px solid var(--ct-rule);
  min-width: 0;
}
.kit-lb-txt { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1 1 200px; }
.kit-lb-title {
  font-family: 'Cinzel', serif;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ct-cream);
  overflow-wrap: break-word;
}
.kit-lb-meta {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--ct-cream-dim);
  font-variant-numeric: tabular-nums;
}
.kit-lb-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.kit-lb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 20px;
  font-family: 'Cinzel', serif;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border-radius: 100px;
  border: 1px solid var(--ct-rule-strong);
  background: transparent;
  color: var(--ct-cream);
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.kit-lb-btn:hover { border-color: var(--ct-gold); color: var(--ct-gold); }
.kit-lb-btn-primary { background: var(--ct-gold); border-color: var(--ct-gold); color: #15120e; }
.kit-lb-btn-primary:hover { background: var(--ct-gold-warm); border-color: var(--ct-gold-warm); color: #15120e; }

.kit-lb-close {
  position: absolute;
  top: clamp(8px, 2vw, 20px);
  right: clamp(8px, 2vw, 20px);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--ct-rule-strong);
  background: rgba(20, 18, 16, 0.85);
  color: var(--ct-cream);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.kit-lb-close:hover { border-color: var(--ct-gold); color: var(--ct-gold); }

.kit-lb-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--ct-rule-strong);
  background: rgba(20, 18, 16, 0.85);
  color: var(--ct-cream);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.kit-lb-nav svg { width: 22px; height: 22px; }
.kit-lb-nav:hover { border-color: var(--ct-gold); color: var(--ct-gold); }
.kit-lb-prev { left: clamp(6px, 1.5vw, 24px); }
.kit-lb-next { right: clamp(6px, 1.5vw, 24px); }

/* ───── SHAPE CHANGES ONLY (column counts stay fluid above) ───── */

@media (max-width: 640px) {
  .kit-dl-card { flex-wrap: wrap; }
  .kit-dl-icon { width: 40px; height: 40px; }
  .kit-dl-go { width: 100%; text-align: center; padding: 13px 18px; }
  .kit-lb-bar { flex-direction: column; align-items: stretch; }
  .kit-lb-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .kit-lb-img { max-height: min(52svh, 52vh); }
  /* Keep the arrows clear of the caption block on short screens */
  .kit-lb-nav { top: auto; bottom: calc(50% + 64px); transform: none; }
}

@media (hover: none) {
  /* No hover on touch, so drop lift effects and the hover-only overlay */
  .kit-tile-zoom-hint { opacity: 0; }
  .kit-tile:hover,
  .kit-fcard:hover,
  .kit-dl-card:hover { transform: none; }
  /* Coarse pointers need a full-size target */
  .kit-tile-dl { width: 44px; height: 44px; }
}

/* Touch-sized download target on small screens regardless of pointer type
   (a 34px circle is under the 44px minimum comfortable tap target). */
@media (max-width: 640px) {
  .kit-tile-dl { width: 44px; height: 44px; }
  .kit-tile-cap { padding: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .kit-tile,
  .kit-fcard,
  .kit-dl-card,
  .kit-tile-zoom img,
  .kit-fcard-media img,
  .kit-more-toggle .chev { transition: none !important; }
  .kit-tile:hover,
  .kit-fcard:hover,
  .kit-dl-card:hover { transform: none; }
  .kit-lb { animation: none; }
}

/* A scrollable row is only scrollable once the flex item is permitted to be
   narrower than its contents. Without min-width:0 these nowrap chips forced
   press.html out to 405px on a 360px screen instead of scrolling. */
.kit-filters { min-width: 0; max-width: 100%; }
