/* BOPP bottle labels and wristbands: the packaging look.
   Loaded only on the BOPP pages, after site.css, and scoped to body.bopp, so the TMT pages keep their
   steel-tag look untouched. No rebar rails, no die-cut tags, no eyelets or cords: rounded label shapes,
   shelf-lit product slots, and specifications in a plain information panel.

   Photo slots (.bp-shot[data-photo-slot]) hold a drawing until his photograph arrives; then the
   <svg class="bp-art"> inside is replaced by an <img> of the same slot, and the figure takes
   .bp-shot--photo: his whole artwork on a white mount, his caption beneath it (see "his photographs"). */

body.bopp {
  --bp-radius: 18px;
  --bp-radius-s: 12px;
  --bp-shadow: 0 1px 0 rgba(18, 17, 15, 0.06), 0 14px 34px -18px rgba(18, 17, 15, 0.35);
  --bp-teal-ground: #015A76;
  --bp-tint-water: #DCEEF6;
  --bp-tint-drinks: #FBE3CC;
  --bp-tint-dairy: #F8E1E8;
  --bp-tint-oil: #F7EBC4;
  --bp-tint-care: #E3EEF1;
  --bp-tint-clean: #E2F0D6;
  --bp-tint-bands: #DDEAF0;
}

/* ---------- photo slots ---------- */
.bopp .bp-shot { position: relative; margin: 0; overflow: hidden; background: var(--lifted); aspect-ratio: 4 / 3; }
.bopp .bp-shot > svg, .bopp .bp-shot > img, .bopp .bp-shot > picture, .bopp .bp-shot > picture img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* ---------- his photographs ---------- */
/* Whole artwork on a white mount, contained and never cropped, with his caption beneath it inside the
   frame: never a heading or button over the artwork, and his watermarks kept (his rules, 17 Oct 2026).
   A card keeps its frame's shape so it lines up with the drawing cards beside it. */
.bopp .bp-shot--photo { display: flex; flex-direction: column; background: #fff; }
.bopp .bp-shot.bp-shot--photo > img { flex: 1 1 0; min-height: 0; height: auto; padding: 10px 10px 0; object-fit: contain; }
.bopp .bp-shot--photo > figcaption { flex: none; padding: 7px 14px 10px; font-size: 0.86rem; line-height: 1.35; color: var(--ink-soft); }
/* Four narrow product cards: a 4:3 frame left his photographs postage-stamp sized, so a row holding
   one of them goes square (the drawings beside it crop from their centre). */
.bopp .bp-products:has(.bp-shot--photo) .bp-shot { aspect-ratio: 1 / 1; }
.bopp .bp-hero__shot.bp-shot--photo, .bopp .bp-gallery .bp-shot--photo { aspect-ratio: auto; }
.bopp .bp-hero__shot.bp-shot--photo > img, .bopp .bp-gallery .bp-shot--photo > img { flex: none; }
/* His ghee photograph is small: never shown wider than its own 304 pixels. */
.bopp .bp-shot.bp-shot--small > img { max-width: 304px; align-self: center; }
.bopp .bp-gallery-block { grid-column: 1 / -1; }
.bopp .bp-gallery__h { margin-top: clamp(8px, 1.5vw, 20px); font-family: var(--display); font-weight: 600; font-size: clamp(1.4rem, 1.2rem + 0.6vw, 1.8rem); line-height: 1.05; text-transform: uppercase; letter-spacing: 0.01em; }
.bopp .bp-gallery { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2vw, 22px); align-items: start; }
.bopp .bp-gallery--one { grid-template-columns: minmax(0, 1fr); max-width: 900px; }
.bopp .bp-gallery .bp-shot { border-radius: var(--bp-radius-s); box-shadow: var(--bp-shadow); }

/* ---------- page head ---------- */
.bopp .bp-hero { position: relative; padding-block: clamp(36px, 5vw, 72px) clamp(56px, 7vw, 96px); overflow: hidden; }
.bopp .bp-hero__inner {
  position: relative; z-index: 1;
  max-width: calc(var(--content) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter);
  display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: 40px clamp(32px, 5vw, 72px); align-items: center;
}
.bopp .bp-hero h1 {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(2.6rem, 1.5rem + 3vw, 4.6rem); line-height: 0.98; letter-spacing: -0.012em; max-width: 12em;
}
.bopp .bp-hero .phead__back { margin-top: 0; margin-bottom: 8px; }
.bopp .bp-hero .phead__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.bopp .bp-hero .phead__actions .btn { margin-top: 0; }
.bopp .bp-hero__shot { border-radius: var(--bp-radius); box-shadow: var(--bp-shadow); aspect-ratio: 14 / 11; }
.bopp .bp-hero__shot--wide { aspect-ratio: 3 / 2; }
.bopp .bp-hero__facts {
  display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; padding: 0; list-style: none;
}
.bopp .bp-hero__facts li {
  font-family: var(--display); font-weight: 600; font-size: 1.05rem; letter-spacing: 0.01em;
  padding: 6px 14px; border-radius: 999px; background: var(--face); box-shadow: inset 0 0 0 1px var(--rule-soft);
}

/* ---------- section grounds ---------- */
.bopp .bp-band { background: var(--bp-teal-ground); color: var(--on-dark); }
.bopp .bp-band .sec-head p { color: #D3E4EA; }
.bopp .bp-band a:not(.btn) { color: var(--on-dark); }
.bopp .bp-band a:not(.btn):hover { color: var(--yellow); }
.bopp .cta { background: var(--bp-teal-ground); }
.bopp .cta p, .bopp .cta .talk__line span { color: #D3E4EA; }
.bopp .cta .talk__line { border-color: rgba(245, 244, 240, 0.28); }

/* ---------- category cards ---------- */
.bopp .bp-cats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 26px); }
.bopp .bp-card {
  display: flex; flex-direction: column; background: var(--face); color: var(--ink);
  border-radius: var(--bp-radius); overflow: hidden; box-shadow: var(--bp-shadow);
}
.bopp .bp-card__body { display: flex; flex-direction: column; gap: 10px; flex: 1; padding: 20px clamp(18px, 2vw, 24px) 22px; }
.bopp .bp-card h3 { font-family: var(--display); font-weight: 600; font-size: clamp(1.45rem, 1.25rem + 0.6vw, 1.8rem); line-height: 1.05; text-transform: uppercase; letter-spacing: 0.01em; }
.bopp .bp-card h3 a { color: inherit; text-decoration: none; }
.bopp .bp-card h3 a:hover { color: var(--teal); }
.bopp .bp-card p { font-size: 1rem; line-height: 1.5; color: var(--ink-soft); }
.bopp .bp-card__acts { margin-top: auto; padding-top: 8px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
.bopp .bp-go {
  display: inline-flex; align-items: center; min-height: 48px; font-family: var(--display); font-weight: 600; font-size: 1.15rem; color: var(--teal);
}
.bopp .bp-band .bp-card a:not(.btn):not(.bp-ask) { color: var(--teal); }
.bopp .bp-band .bp-card h3 a:not(.btn) { color: var(--ink); }
.bopp .bp-band .bp-card h3 a:not(.btn):hover { color: var(--teal); }
.bopp .bp-go::after { content: ""; width: 0.42em; height: 0.42em; margin-left: 0.45em; border: solid currentColor; border-width: 2px 2px 0 0; transform: rotate(45deg); }
.bopp .bp-ask {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 16px; border-radius: 999px;
  font-family: var(--display); font-weight: 600; font-size: 1.05rem; text-decoration: none;
  color: var(--ink) !important; box-shadow: inset 0 0 0 1.5px var(--ink);
}
.bopp .bp-ask:hover { background: var(--ink); color: var(--face) !important; }
.bopp .bp-card--wide { grid-column: 1 / -1; flex-direction: row; }
.bopp .bp-card--wide .bp-shot { flex: 0 0 42%; aspect-ratio: auto; min-height: 260px; }
.bopp .bp-card--wide .bp-card__body { justify-content: center; padding-block: 28px; }

/* ---------- information panel ---------- */
.bopp .bp-panel { background: var(--face); border-radius: var(--bp-radius); box-shadow: var(--bp-shadow); overflow: hidden; }
.bopp .bp-panel__h {
  display: flex; align-items: center; gap: 12px; padding: 14px clamp(18px, 2.4vw, 28px);
  background: var(--teal); color: #fff; font-family: var(--display); font-weight: 600; font-size: 1.35rem; letter-spacing: 0.02em; text-transform: uppercase;
}
.bopp .bp-panel__h img { width: auto; height: 32px; }
.bopp .bp-panel dl { margin: 0; padding: 6px clamp(18px, 2.4vw, 28px) 14px; }
.bopp .bp-panel dl > div { display: grid; grid-template-columns: minmax(0, 11rem) minmax(0, 1fr); gap: 4px 18px; padding: 12px 0; border-bottom: 1px solid var(--rule-soft); }
.bopp .bp-panel dl > div:last-child { border-bottom: 0; }
.bopp .bp-panel dt { font-weight: 600; color: var(--ink); font-size: 1rem; }
.bopp .bp-panel dd { margin: 0; color: var(--ink-soft); font-size: 1rem; line-height: 1.5; }
.bopp .bp-panel__p { padding: 18px clamp(18px, 2.4vw, 28px) 4px; font-size: 1.08rem; line-height: 1.55; }
.bopp .bp-panel__p + .bp-panel__p { padding-top: 8px; color: var(--ink-soft); }
.bopp .bp-panel__p:last-child { padding-bottom: 22px; }
.bopp .bp-panel .diagram { border-top: 1px solid var(--rule-soft); background: transparent; }

.bopp .diagram { border-radius: var(--bp-radius-s); border-top: 0; box-shadow: inset 0 0 0 1px var(--rule-soft); }
.bopp .sendlist { border-top: 0; border-radius: var(--bp-radius); box-shadow: var(--bp-shadow); padding: 22px clamp(18px, 2.5vw, 28px); }
.bopp .aside-line { border-top: 0; padding: 14px 18px; background: var(--face); border-left: 4px solid var(--teal); border-radius: 0 8px 8px 0; }

/* ---------- a printed sheet of artwork versions ---------- */
.bopp .bp-sheet {
  background: var(--face); border-radius: var(--bp-radius); box-shadow: var(--bp-shadow);
  padding: clamp(18px, 2.5vw, 28px); width: min(100%, 520px); justify-self: center;
}
.bopp .bp-sheet__h { font-family: var(--display); font-weight: 600; font-size: 1.35rem; text-transform: uppercase; letter-spacing: 0.02em; margin-bottom: 14px; }
.bopp .bp-sheet__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.bopp .bp-version { border-radius: 10px; padding: 12px 12px 10px; color: var(--ink); background: var(--bp-tint-water); }
.bopp .bp-version:nth-child(2) { background: #FFF1A8; }
.bopp .bp-version:nth-child(3) { background: var(--bp-tint-clean); }
.bopp .bp-version__n { font-family: var(--display); font-weight: 600; font-size: 1.1rem; letter-spacing: 0.02em; }
.bopp .bp-version dl { margin: 8px 0 0; }
.bopp .bp-version dl div { display: flex; justify-content: space-between; gap: 8px; padding: 6px 0; border-top: 1px dashed rgba(18, 17, 15, 0.3); font-size: 0.92rem; }
.bopp .bp-version dt { font-weight: 600; }
.bopp .bp-version dd { margin: 0; flex: 1; border-bottom: 1px solid rgba(18, 17, 15, 0.35); }

/* ---------- media slots (photographs and demonstrations) ---------- */
.bopp .bp-media { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2vw, 22px); counter-reset: none; }
.bopp .bp-media__item { background: var(--face); border-radius: var(--bp-radius-s); overflow: hidden; box-shadow: var(--bp-shadow); display: flex; flex-direction: column; }
.bopp .bp-media__item .bp-shot { aspect-ratio: 16 / 10; }
.bopp .bp-media__t { display: flex; gap: 12px; align-items: baseline; padding: 14px 16px 16px; font-weight: 500; line-height: 1.35; }
.bopp .bp-media__n { font-family: var(--display); font-weight: 700; font-size: 1.3rem; color: var(--teal); }
.bopp .bp-media__item .video__frame { order: -1; }
.bopp .bp-media__item:has(.video__frame) .bp-shot { display: none; }

/* ---------- product sections on a category page ---------- */
.bopp .bp-products { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(var(--cols, 2), minmax(0, 1fr)); gap: clamp(16px, 2vw, 26px); }
.bopp .bp-products--4 { --cols: 4; }
.bopp .bp-products--3 { --cols: 3; }
.bopp .bp-products .bp-card h3 { font-size: clamp(1.3rem, 1.15rem + 0.5vw, 1.6rem); }

.bopp .video-card { background: var(--bp-teal-ground); border-radius: var(--bp-radius-s); }
.bopp .bp-media + .demos__channel { margin-top: clamp(18px, 2.4vw, 28px); }

/* ---------- related categories ---------- */
.bopp .bp-related { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.bopp .bp-related a {
  display: inline-flex; align-items: center; min-height: 48px; padding: 0 18px; border-radius: 999px;
  background: var(--face); box-shadow: inset 0 0 0 1px var(--rule); color: var(--ink); text-decoration: none;
  font-family: var(--display); font-weight: 600; font-size: 1.1rem;
}
.bopp .bp-related a:hover { box-shadow: inset 0 0 0 2px var(--teal); color: var(--teal); }
.bopp .bp-related a[aria-current="page"] { background: var(--ink); color: var(--face); box-shadow: none; }

.bopp .bp-split { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: 32px clamp(32px, 5vw, 80px); align-items: center; }
.bopp .bp-split > .bp-shot { border-radius: var(--bp-radius); box-shadow: var(--bp-shadow); }
.bopp .bp-split--top { align-items: start; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .bopp .bp-products--4 { --cols: 2; }
}
@media (max-width: 960px) {
  .bopp .bp-hero__inner, .bopp .bp-split { grid-template-columns: minmax(0, 1fr); }
  .bopp .bp-cats, .bopp .bp-media { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bopp .bp-products--3 { --cols: 2; }
}
@media (max-width: 640px) {
  .bopp .bp-cats, .bopp .bp-media, .bopp .bp-products, .bopp .bp-gallery { grid-template-columns: minmax(0, 1fr); --cols: 1; }
  .bopp .bp-card--wide { flex-direction: column; }
  .bopp .bp-card--wide .bp-shot { flex: none; aspect-ratio: 4 / 3; min-height: 0; }
  .bopp .bp-panel dl > div { grid-template-columns: minmax(0, 1fr); }
  .bopp .bp-sheet__grid { grid-template-columns: minmax(0, 1fr); }
}
