/* Picture-box drill-down. KitPak-Building, 27 Nov 2026.
   Image-led boxes with a short plain label under the picture (Chris, 27 Nov). */
.dd-hub { padding: 2rem 0 2.5rem; }
.dd-hub-title { font-size: 1.35rem; margin: 0 0 1.1rem; }
.dd-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 1.25rem;
}
.dd-grid > li { display: flex; }
.dd-box {
  display: flex;
  flex-direction: column;
  width: 100%;
  background: var(--card, #fff);
  border: 1px solid var(--line, #e6e6e6);
  color: inherit;
  text-decoration: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
a.dd-box:hover { border-color: var(--ink, #090909); box-shadow: 0 2px 10px rgba(0,0,0,0.06); }
a.dd-box:focus-visible { outline: 3px solid var(--focus, #9A5200); outline-offset: 3px; }
.dd-media {
  display: grid;
  place-items: center;
  aspect-ratio: 1 / 1;
  background: #fff;
  border-bottom: 1px solid var(--line, #e6e6e6);
  overflow: hidden;
}
.dd-media img { width: 100%; height: 100%; object-fit: contain; }
.dd-placeholder { background: var(--paper-deep, #f0f0f0); color: #9a9a9a; }
.dd-placeholder svg { width: 34%; height: auto; }
.dd-label {
  display: block;
  padding: 0.7rem 0.85rem 0;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.35;
}
.dd-meta {
  display: block;
  padding: 0.2rem 0.85rem 0.85rem;
  font-size: 0.875rem;
  color: var(--muted, #4a4a4a);
}
.dd-sub {
  display: block;
  padding: 0.15rem 0.85rem 0;
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--muted, #4a4a4a);
  line-height: 1.35;
}
.dd-soon { cursor: default; }
.dd-soon .dd-media, .dd-soon .dd-label { opacity: 0.6; }
.dd-back { margin: 0 0 0.75rem; font-size: 1rem; }
.dd-back-bottom { margin: 2rem 0 0; }
.dd-wrap { padding-top: 2rem; padding-bottom: 3rem; }
.dd-band { font-size: 1.15rem; margin: 2rem 0 1rem; }
.dd-band:first-child { margin-top: 0; }
/* No big "Illustration" flag on drill-down pages; alt text still says it is an illustration. */
.dd-page .placeholder-flag { display: none; }
.dd-page .akw-intro { font-size: 1rem; color: var(--muted, #4a4a4a); margin: 0 0 1rem; }
@media (max-width: 640px) {
  .dd-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; }
  .dd-label { font-size: 0.95rem; padding: 0.55rem 0.6rem 0; }
  .dd-meta { font-size: 0.8rem; padding: 0.15rem 0.6rem 0.65rem; }
  .dd-sub { font-size: 0.75rem; padding: 0.1rem 0.6rem 0; }
  .dd-hub { padding: 1.25rem 0 1.75rem; }
}
.dd-svg { background: #fff; }
.dd-svg svg { width: 55%; height: auto; }
.dd-media.dd-photo img { object-fit: contain; object-position: center; }
/* Preview fittings photos on product pages (div.product-card-static, not a.product-card) */
.product-card-static .card-media {
  aspect-ratio: 1 / 1;
  width: 100%;
  min-height: 0;
  padding: 0;
  background: #FFFFFF;
  overflow: hidden;
  display: grid;
  place-items: center;
}
.product-card-static .card-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background: #FFFFFF;
  display: block;
}
/* The level you are in (e.g. Lighting): its picture box sits above its sub-category boxes. */
.dd-current {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: max-content;
  max-width: 100%;
  margin: 0 0 1.5rem;
  padding: 0.6rem 1.1rem 0.6rem 0.6rem;
  background: var(--card, #fff);
  border: 2px solid var(--accent, #F7911D);
}
.dd-current-media { display: grid; place-items: center; width: 88px; height: 88px; background: #fff; }
.dd-current-media svg { width: 80px; height: 80px; }
.dd-current-label { margin: 0; font-size: 1.35rem; }

/* Pass 3u: the ILLUSTRATION flag now shows on every line drawing, drill-down pages included. */
.dd-page .card-media .placeholder-flag,
.dd-page .gallery .placeholder-flag { display: inline-block; }

/* Preview 2 Dec 2026: full product description on category tiles */
/* Bigger, readable description under the picture. Shared by every category tile. */
.dd-box .dd-label {
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.35;
  overflow-wrap: break-word;
  word-break: break-word;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 6;
  overflow: hidden;
}
.dd-box .tile-desc {
  display: block;
  padding: 0.25rem 0.85rem 0;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.35;
  color: var(--ink, #090909);
}
.dd-box .tile-specs {
  display: block;
  padding: 0.2rem 0.85rem 0;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.35;
}
.dd-box .tile-confirm {
  display: block;
  padding: 0.15rem 0.85rem 0;
  font-size: 0.95rem;
  line-height: 1.35;
  color: var(--muted, #4a4a4a);
}
@media (max-width: 640px) {
  .dd-box .dd-label {
    font-size: 1.1rem;
    -webkit-line-clamp: 7;
    padding: 0.55rem 0.6rem 0;
  }
  .dd-box .tile-desc,
  .dd-box .tile-specs {
    font-size: 1rem;
    padding-left: 0.6rem;
    padding-right: 0.6rem;
  }
  .dd-box .tile-confirm {
    font-size: 0.92rem;
    padding-left: 0.6rem;
    padding-right: 0.6rem;
  }
}
/* Headed groups so later cable, connector and box rows can slot in. */
.consumables-group { margin: 0 0 2rem; }
.consumables-group:last-child { margin-bottom: 0; }
.consumables-heading {
  font-size: 1.25rem;
  margin: 0 0 0.85rem;
}
.range-split { margin: 0 0 2rem; }
.range-split:last-child { margin-bottom: 0; }

/* 2 Dec 2026: tray plans and cubicle drawings carry their own title and dimensions in the top-left corner,
   so the corner badge hid them on small cards. The "Illustration, not a photo" caption under the card
   and the line inside the drawing still label them. */
.dd-page .card-media img[src*="/akw/tray-"] + .placeholder-flag,
.dd-page .card-media img[src*="/akw/type-tray-"] + .placeholder-flag,
.dd-page .card-media img[src*="/akw/type-shower-tray"] + .placeholder-flag,
.dd-page .card-media img[src*="/akw/type-shower-cubicle"] + .placeholder-flag { display: none; }
