/* Supplemental layout for products.html - works with voltis-main.css */

/* Theme masks images with .media::after until ScrollTrigger + load; force reveal on this page */
body.page-id-products .media::after {
  opacity: 0 !important;
  pointer-events: none !important;
}

body.page-id-products .media img,
body.page-id-products .media video {
  opacity: 1;
  position: relative;
  z-index: 1;
}

/* “Selected portfolio work” slider: hover = same art, greyscale overlay (see products-portfolio-slider-hover.js). */
body.page-id-products .slider .work__thumbnail .work__thumbnail-over {
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

body.page-id-products .slider .work__thumbnail.is-vl-grey-hover .work__thumbnail-over {
  opacity: 1 !important;
  visibility: visible !important;
}

/*
 * #voltis-core duplicates the productivity grid from #voltis-apps; hide the second card grid
 * on small screens so mobile users are not served two near-identical carousels.
 */
@media (max-width: 1023px) {
  body.page-id-products #voltis-core .vl-products-grid-wrap {
    display: none !important;
  }
}

body.page-id-products .slider .work__thumbnail .vl-products-slider-thumb-grey {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: translate3d(0, 0, 0) scale(1.02);
  transform-origin: center center;
  filter: grayscale(1) contrast(1.08) brightness(0.96);
}

.vl-products-grid-wrap .vl-products-grid {
  display: grid !important;
  width: 100%;
  max-width: 75rem;
  margin-inline: auto;
  box-sizing: border-box;
  color: var(--color-text, #fff);
}

/* Full-width row in the theme grid so inner columns are not squeezed to one track */
body.page-id-products .vl-products-grid-wrap {
  grid-column: 1 / -1;
  width: 100%;
  max-width: none;
  box-sizing: border-box;
}

/* Wrapper uses theme subgrid: a single child without placement sits in column 1 only (~1 track wide). */
.vl-products-grid-wrap.grid.subgrid > .vl-products-grid {
  grid-column: 1 / -1;
  width: 100%;
  min-width: 0;
}

/* Space between catalog intro copy and tiles (avoid overlap / cramped stacks) */
#voltis-apps .grid > .vl-products-grid-wrap,
#voltis-games .grid > .vl-products-grid-wrap {
  margin-top: clamp(1.25rem, 3vw, 2rem);
}

#voltis-games {
  margin-top: clamp(2rem, 4vw, 3rem);
}

.vl-products-grid {
  display: grid;
  /* Match voltislabs.uk/products: grid-cols-2 sm:2 md:3 lg:4, centered tiles */
  grid-template-columns: repeat(2, minmax(0, 1fr));
  justify-items: center;
  column-gap: 1rem;
  row-gap: 1.5rem;
}
@media (min-width: 768px) {
  .vl-products-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (min-width: 1024px) {
  .vl-products-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
.vl-product-card {
  position: relative;
  width: 100%;
  max-width: 12rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 0;
  display: flex;
  flex-direction: column;
  min-height: 0;
  min-width: 0;
  overflow: hidden;
  border-radius: 1rem;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

/* Catalog: icon lives in its own framed tile; name sits below as plain text */
.vl-products-grid-wrap .vl-product-card {
  border: none;
  background: transparent;
  border-radius: 0;
  overflow: visible;
  box-shadow: none;
}
.vl-products-grid-wrap .vl-product-card:hover {
  transform: none;
  background: transparent;
}

@media (hover: hover) and (pointer: fine) {
  .vl-products-grid-wrap .vl-product-card:hover .vl-product-card__thumb-img {
    transform: translate(-50%, -50%) scale(1.04);
    transition: transform 0.2s ease;
  }
}
.vl-product-card:hover {
  border-color: rgba(255, 43, 43, 0.45);
  background: rgba(255, 255, 255, 0.03);
}
.vl-product-card__thumb {
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  border-bottom: none;
  border-radius: 2rem 2rem 0 0;
  overflow: hidden;
}

.vl-products-grid-wrap .vl-product-card__thumb {
  flex-shrink: 0;
  width: 100%;
  border-radius: 2rem;
  border: none;
  box-sizing: border-box;
  margin-bottom: 0.65rem;
  transition: transform 0.2s ease;
  /* Block + relative so the icon absolutely fills the frame (avoid flex-row squishing) */
  display: block;
  position: relative;
  cursor: pointer;
}
.vl-product-card--productivity .vl-product-card__thumb {
  background: linear-gradient(155deg, #1a2035 0%, #0a0b10 100%);
}
.vl-product-card--fashion .vl-product-card__thumb {
  background: linear-gradient(155deg, #2a1528 0%, #0c090d 100%);
}
.vl-product-card--lifestyle .vl-product-card__thumb {
  background: linear-gradient(155deg, #142a22 0%, #080c0a 100%);
}

/* PONY tile PNG includes full plate + type - no CSS recolour, rim, or stacked shadows. */
article.vl-product-card--lifestyle:has(.vl-product-card__link[href="/product-pony"]) .vl-product-card__thumb {
  background: transparent;
  box-shadow: none;
}

article.vl-product-card--lifestyle:has(.vl-product-card__link[href="/product-pony"]) .vl-product-card__thumb::after {
  content: none;
  display: none;
}

article.vl-product-card--lifestyle:has(.vl-product-card__link[href="/product-pony"]) .vl-product-card__thumb-img {
  filter: none;
  box-shadow: none !important;
}

.vl-product-card--games .vl-product-card__thumb {
  background: linear-gradient(155deg, #152238 0%, #080b12 100%);
}
.vl-product-card--social .vl-product-card__thumb {
  background: linear-gradient(155deg, #241818 0%, #0a0808 100%);
}
.vl-product-card__thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.22;
  background: radial-gradient(
    circle at 30% 20%,
    rgba(255, 43, 43, 0.35) 0%,
    transparent 55%
  );
  pointer-events: none;
}

.vl-product-card__thumb-img {
  position: relative;
  z-index: 1;
  width: 96px !important;
  height: 96px !important;
  max-width: 85%;
  max-height: 85%;
  object-fit: contain;
  border-radius: 22px;
  box-shadow: 0 18px 52px rgba(0, 0, 0, 0.55);
}

.vl-products-grid-wrap .vl-product-card__thumb-img {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 90% !important;
  height: 90% !important;
  max-width: none;
  max-height: none;
  object-fit: contain;
  object-position: center;
  border-radius: 20px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45);
}

/* ── Spring layer (Animate UI-style cord + sprung icon mass; see products-spring-icons.js) ── */
body.page-id-products .vl-products-grid-wrap .vl-product-thumb-spring {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

body.page-id-products .vl-products-grid-wrap .vl-product-thumb-spring__svg {
  position: absolute;
  inset: 0;
  overflow: visible;
}

body.page-id-products .vl-products-grid-wrap .vl-product-thumb-spring__line {
  stroke: rgba(255, 255, 255, 0.14);
  stroke-width: 1.25;
}

body.page-id-products .vl-products-grid-wrap .vl-product-thumb-spring__mass {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 92%;
  height: 92%;
  max-width: 7.85rem;
  max-height: 7.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  will-change: transform;
  pointer-events: none;
}

body.page-id-products .vl-products-grid-wrap .vl-product-thumb-spring__mass .vl-product-card__thumb-img {
  position: relative;
  left: auto;
  top: auto;
  transform: none;
  transform-origin: center center;
  width: 100% !important;
  height: 100% !important;
  transition: transform 0.2s ease;
}

body.page-id-products.vl-theme-middle
  .vl-products-grid-wrap
  .vl-product-thumb-spring__line {
  stroke: rgba(70, 78, 92, 0.22);
}

/* Catalog: no gradient “tile”, glow overlay, rim, or shadow frame behind icons */
body.page-id-products .vl-products-grid-wrap .vl-product-card__thumb {
  background: transparent !important;
}

body.page-id-products .vl-products-grid-wrap .vl-product-card__thumb::after {
  content: none;
  display: none;
}

body.page-id-products .vl-products-grid-wrap .vl-product-card__thumb-img {
  box-shadow: none !important;
}

body.page-id-products.vl-theme-middle .vl-products-grid-wrap .vl-product-card__thumb {
  border: none;
}

body.page-id-products.vl-theme-middle .vl-products-grid-wrap .vl-product-card:hover .vl-product-card__thumb {
  border: none;
}
.vl-product-card__body {
  padding: 0.5rem 0.5rem 0.65rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1;
  align-items: center;
  text-align: center;
}
.vl-products-grid-wrap .vl-product-card__body {
  padding: 0 0.2rem;
  flex: 0 0 auto;
  align-items: center;
  background: transparent;
}
.vl-products-grid-wrap .vl-product-card__title {
  pointer-events: none;
  margin-top: 0.1rem;
  line-height: 1.35;
}
.vl-product-card__meta {
  margin: 0;
}
.vl-product-card__cat {
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.55;
}
.vl-product-card__title {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.25;
  font-family: var(--font-primary, system-ui, sans-serif);
}
@media (min-width: 640px) {
  .vl-product-card__title {
    font-size: 1rem;
  }
}
.vl-product-card__desc {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.45;
  opacity: 0.82;
  flex: 1;
}
.vl-product-card__link {
  margin-top: 0.25rem;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  align-self: flex-start;
}
.vl-product-card__link:hover {
  opacity: 0.75;
}

/* Products catalog grids (#voltis-apps, #voltis-core, #voltis-games): visible category labels and titles only. */
#voltis-apps .vl-products-grid-wrap .vl-product-card__meta,
#voltis-core .vl-products-grid-wrap .vl-product-card__meta,
#voltis-games .vl-products-grid-wrap .vl-product-card__meta {
  position: static;
  width: auto;
  height: auto;
  padding: 0;
  margin: 0;
  margin-bottom: 0.2rem;
  overflow: visible;
  clip: auto;
  white-space: normal;
  border: 0;
  clip-path: none;
}

/* Tile body: tighter stack under icon without long catalog blurbs */
#voltis-apps .vl-products-grid-wrap .vl-product-card__body,
#voltis-core .vl-products-grid-wrap .vl-product-card__body,
#voltis-games .vl-products-grid-wrap .vl-product-card__body {
  align-items: stretch;
  text-align: left;
  padding: 0.45rem 0.5rem 0.65rem;
  width: 100%;
  box-sizing: border-box;
}

#voltis-apps .vl-products-grid-wrap .vl-product-card__meta,
#voltis-apps .vl-products-grid-wrap .vl-product-card__title,
#voltis-core .vl-products-grid-wrap .vl-product-card__meta,
#voltis-core .vl-products-grid-wrap .vl-product-card__title,
#voltis-games .vl-products-grid-wrap .vl-product-card__meta,
#voltis-games .vl-products-grid-wrap .vl-product-card__title {
  text-align: center;
}

#voltis-apps .vl-products-grid-wrap .vl-product-card__link,
#voltis-core .vl-products-grid-wrap .vl-product-card__link,
#voltis-games .vl-products-grid-wrap .vl-product-card__link {
  align-self: stretch;
}

#voltis-apps .vl-products-grid,
#voltis-core .vl-products-grid,
#voltis-games .vl-products-grid {
  align-items: start;
}

.vl-products-grid-wrap .vl-product-card__meta,
.vl-products-grid-wrap .vl-product-card__desc {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.vl-products-grid-wrap .vl-product-card__link {
  position: absolute;
  inset: 0;
  z-index: 2;
  margin: 0;
  padding: 0;
  border: none;
  opacity: 0;
  font-size: 0;
}
.vl-products-grid-wrap .vl-product-card__link:focus-visible {
  opacity: 1;
  font-size: 0.75rem;
  outline: 2px solid rgba(255, 43, 43, 0.85);
  outline-offset: 2px;
}

body.page-id-enterprise #licensing .vl-products-grid-wrap {
  margin-top: clamp(1rem, 2.5vw, 1.75rem);
}

body.page-id-enterprise #licensing .vl-products-grid-wrap .vl-product-card__thumb {
  overflow: visible;
}

/* Licensing grid: don’t clip icons when they drift / shuffle layout */
body.page-id-enterprise #licensing .vl-products-grid-wrap,
body.page-id-enterprise #licensing .vl-products-grid {
  overflow: visible;
}
body.page-id-enterprise #licensing .vl-products-grid-wrap .vl-product-card {
  overflow: visible;
}

/* Businesses hero video: match home header hero - grid gutters, tight title-to-media gap */
body.page-id-enterprise main > div > div > .section.section-media--full:first-child {
  margin-top: clamp(0.65rem, 1.6vw, 1.1rem) !important;
}

body.page-id-enterprise .section-media--full .section-media__container {
  padding-left: var(--space-grid-padding) !important;
  padding-right: var(--space-grid-padding) !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  box-sizing: border-box;
}

body.page-id-enterprise .section-media--full .section-media__figure {
  grid-column: 1 / -1;
  width: 100%;
  max-width: none;
  margin: 0;
}

body.page-id-enterprise .section-media--full .media {
  width: 100%;
  border-radius: 4px;
  overflow: hidden;
}

/* Businesses hero: video fills the framed media strip. */
body.page-id-enterprise .section-media--full .media.vl-businesses-hero-wrap {
  overflow: hidden;
}

body.page-id-enterprise .section-media--full .media video {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: bottom;
  object-fit: cover;
  object-position: center center;
}

/* Products page: clean, shared content shell for headings, copy, grids, and columns */
body.page-id-products {
  --vl-products-shell-max: 75rem;
  --vl-products-shell-pad: var(--space-grid-padding, clamp(1rem, 4vw, 1.5rem));
}

body.page-id-products .vl-products-shell {
  width: 100%;
  max-width: var(--vl-products-shell-max);
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

/* Unify products prose/table/columns to one centered text column width */
body.page-id-products .section.section-table > .grid.vl-products-shell,
body.page-id-products #deliverables + .section-columns > .grid.vl-products-shell,
body.page-id-products .section-wysiwyg__container > .text,
body.page-id-products .vl-products-pullquote {
  max-width: var(--body-text-max, 58rem) !important;
  margin-left: auto !important;
  margin-right: auto !important;
  margin-inline: auto !important;
}

body.page-id-products .section-wysiwyg__container > .text.vl-products-shell[pos="5-12"] {
  grid-column: 1 / -1 !important;
}

/* Single rule for the problematic prose area (pullquote + approach + who) */
body.page-id-products .section-wysiwyg__container > .text.vl-products-unified-copy {
  grid-column: 1 / -1 !important;
  width: 100% !important;
  max-width: var(--body-text-max, 58rem) !important;
  margin-left: auto !important;
  margin-right: auto !important;
  margin-inline: auto !important;
  justify-self: center !important;
  text-align: left !important;
}

/* Businesses/About: same full-row placement as Products unified-copy blocks */
body.page-id-enterprise .section-wysiwyg__container > .text.vl-products-unified-copy,
/* About #mission keeps a two-column sticky rail; prose there must stay on cols 5-12 */
body.page-id-17031 .section.section-wysiwyg:not(#mission) .section-wysiwyg__container > .text.vl-products-unified-copy {
  grid-column: 1 / -1 !important;
  width: 100% !important;
  max-width: var(--body-text-max, 58rem) !important;
  margin-left: auto !important;
  margin-right: auto !important;
  margin-inline: auto !important;
  justify-self: center !important;
  text-align: left !important;
}

/* Businesses: mirror products container track behavior for tables/columns */
body.page-id-enterprise .section-table > .grid > .section-table__list,
body.page-id-enterprise .section-columns > .grid > .grid.subgrid[pos="5-12"] {
  grid-column: 1 / -1 !important;
  width: 100% !important;
}

/* Businesses: fix "License with confidence..." block layout to single centered text flow */
body.page-id-enterprise .section-table > .grid > .section-table__list {
  max-width: var(--body-text-max, 58rem) !important;
  margin-left: auto !important;
  margin-right: auto !important;
  margin-inline: auto !important;
}

body.page-id-enterprise .section-table .section-table__item.grid.subgrid {
  display: flex !important;
  flex-flow: column nowrap !important;
  align-items: flex-start !important;
  gap: 0.45rem !important;
}

body.page-id-enterprise .section-table .section-table__item > [pos] {
  grid-column: 1 / -1 !important;
  justify-self: start !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
}

body.page-id-enterprise .section-table .section-table__title,
body.page-id-enterprise .section-table .section-table__text,
body.page-id-enterprise .section-table .section-table__text .p1 {
  text-align: left !important;
  margin: 0 !important;
}

/* Businesses: fix "Deliverables we can provide" column grid drift */
body.page-id-enterprise .section-columns > .grid > .grid.subgrid[pos="5-12"] {
  max-width: var(--body-text-max, 58rem) !important;
  margin-left: auto !important;
  margin-right: auto !important;
  margin-inline: auto !important;
}

body.page-id-enterprise .section-columns > .grid > .grid.subgrid[pos="5-12"] > .section-columns__text {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  justify-self: stretch !important;
  text-align: left !important;
}

/* Businesses + About: normalize deliverables column block (no right-track anchoring) */
body.page-id-enterprise .section.section-columns > .grid > .grid.subgrid[pos="5-12"],
body.page-id-17031 .section.section-columns > .grid > .grid.subgrid[pos="5-12"] {
  grid-column: 1 / -1 !important;
  width: 100% !important;
  max-width: var(--body-text-max, 58rem) !important;
  margin-left: auto !important;
  margin-right: auto !important;
  margin-inline: auto !important;
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 1rem 1.25rem !important;
}

body.page-id-enterprise .section.section-columns > .grid > .grid.subgrid[pos="5-12"] > .section-columns__text,
body.page-id-17031 .section.section-columns > .grid > .grid.subgrid[pos="5-12"] > .section-columns__text {
  grid-column: auto !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  justify-self: stretch !important;
  text-align: left !important;
}

@media (max-width: 767px) {
  body.page-id-enterprise .section.section-columns > .grid > .grid.subgrid[pos="5-12"],
  body.page-id-17031 .section.section-columns > .grid > .grid.subgrid[pos="5-12"] {
    grid-template-columns: 1fr !important;
  }
}

body.page-id-products .section-wysiwyg__container > .text.vl-products-unified-copy h2,
body.page-id-products .section-wysiwyg__container > .text.vl-products-unified-copy h3,
body.page-id-products .section-wysiwyg__container > .text.vl-products-unified-copy p,
body.page-id-products .section-wysiwyg__container > .text.vl-products-unified-copy .p1,
body.page-id-products .section-wysiwyg__container > .text.vl-products-unified-copy .p2 {
  text-align: left !important;
}

body.page-id-products .section-wysiwyg__container > .text.vl-products-unified-copy ul,
body.page-id-products .section-wysiwyg__container > .text.vl-products-unified-copy ol {
  padding-left: 0 !important;
  margin-left: 0 !important;
}

body.page-id-products .section-wysiwyg__container > .text.vl-products-shell h2,
body.page-id-products .section-wysiwyg__container > .text.vl-products-shell .p1 {
  text-align: left;
}

body.page-id-products #voltis-core .section-wysiwyg__container > .text.vl-products-shell h2,
body.page-id-products #voltis-games .section-wysiwyg__container > .text.vl-products-shell h2 {
  margin-bottom: 0.35rem;
}

body.page-id-products #voltis-core .section-wysiwyg__container > .text.vl-products-shell .p1,
body.page-id-products #voltis-games .section-wysiwyg__container > .text.vl-products-shell .p1 {
  margin-top: 0;
  margin-bottom: clamp(1.1rem, 2.6vw, 1.8rem);
}

body.page-id-products #voltis-core .vl-voltis-core-cta {
  margin: 0 0 clamp(1.1rem, 2.6vw, 1.8rem);
}

body.page-id-products #voltis-core .vl-voltis-core-cta .vl-liquid-btn {
  display: inline-flex;
}

body.page-id-products #voltis-core .vl-products-grid-wrap.vl-products-shell,
body.page-id-products #voltis-games .vl-products-grid-wrap.vl-products-shell {
  margin-top: clamp(0.8rem, 2vw, 1.3rem);
}

body.page-id-products #voltis-apps .vl-products-grid-wrap.vl-products-shell .vl-products-grid,
body.page-id-products #voltis-core .vl-products-grid-wrap.vl-products-shell .vl-products-grid,
body.page-id-products #voltis-games .vl-products-grid-wrap.vl-products-shell .vl-products-grid {
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}

body.page-id-products .section.section-table > .grid.vl-products-shell > ul.vl-products-value-table {
  grid-column: 1 / -1 !important;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

body.page-id-products #deliverables + .section-columns > .grid.vl-products-shell > .grid.subgrid[pos="5-12"] {
  grid-column: 1 / -1 !important;
}

body.page-id-enterprise #licensing .vl-products-grid-wrap .vl-product-card {
  max-width: 9rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

body.page-id-enterprise #licensing .vl-products-grid-wrap .vl-product-card__thumb {
  background: transparent !important;
  border-radius: 0 !important;
  aspect-ratio: auto;
  min-height: 0;
  margin-bottom: 0.45rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

body.page-id-enterprise #licensing .vl-products-grid-wrap .vl-product-card__thumb::after {
  display: none;
}

body.page-id-enterprise #licensing .vl-products-grid-wrap .vl-product-card__thumb-img {
  position: relative;
  left: auto;
  top: auto;
  transform: none;
  width: 56px !important;
  height: 56px !important;
  border-radius: 12px;
  box-shadow: none;
}

/* Wearhouse icon artwork has wider inner whitespace than peers; nudge scale for parity with VModel. */
body.page-id-enterprise #licensing .vl-products-grid-wrap .vl-product-card:has(.vl-product-card__link[href*="wearhouse"]) .vl-product-card__thumb-img {
  width: 64px !important;
  height: 64px !important;
}

body.page-id-enterprise #licensing .vl-products-grid-wrap .vl-product-card:hover .vl-product-card__thumb-img {
  filter: brightness(1.06);
}

body.page-id-enterprise #licensing .vl-products-grid-wrap .vl-product-card__meta,
body.page-id-enterprise #licensing .vl-products-grid-wrap .vl-product-card__desc,
body.page-id-enterprise #licensing .vl-products-grid-wrap .vl-product-card__link {
  display: none !important;
}

body.page-id-enterprise #licensing .vl-products-grid-wrap .vl-product-card__title {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
  width: 100%;
  min-height: 2.5em;
  font-family: var(--font-primary, system-ui, sans-serif);
}

body.page-id-enterprise #licensing .vl-products-grid-wrap .vl-product-card__body {
  width: 100%;
  align-items: center;
  text-align: center;
  padding: 0 0.15rem;
  gap: 0.2rem;
}

/* Mobile/coarse pointers: disable sticky hover scale - but keep translate(-50%,-50%) on catalog imgs. */
@media (hover: none), (pointer: coarse) {
  .vl-products-grid-wrap .vl-product-card:hover,
  .vl-products-grid-wrap .vl-product-card:hover .vl-product-card__thumb {
    transform: none !important;
    filter: none !important;
  }

  body.page-id-products .vl-products-grid-wrap .vl-product-card:hover .vl-product-card__thumb-img {
    transform: translate(-50%, -50%) !important;
    filter: none !important;
  }

  body.page-id-enterprise #licensing .vl-products-grid-wrap .vl-product-card:hover .vl-product-card__thumb-img {
    transform: none !important;
    filter: brightness(1.06) !important;
  }

  .vl-products-grid-wrap .vl-product-card__thumb-img {
    transition: none !important;
  }
}

/*
 * Sector line: plain bold heading (no links / underlines).
 */
body.page-id-enterprise .vl-sector-inline-headline,
body.page-id-products .vl-sector-inline-headline {
  margin-top: 0.35em !important;
  margin-bottom: 0.65em !important;
  padding-top: 0 !important;
  border-top: none !important;
  font-weight: 700 !important;
  font-size: inherit !important;
  line-height: 1.35 !important;
  color: var(--color-accent, #ff2b2b);
  text-wrap: balance;
  text-decoration: none !important;
}

.vl-logo-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 1.25rem 1.75rem;
}
.vl-logo-strip img {
  height: 36px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
  filter: grayscale(1) brightness(1.15);
  opacity: 0.85;
  position: relative;
  z-index: 1;
}
/* Voltis live site keeps 2 columns on small viewports; narrow cards stay readable */

/* Large hero type: loosen line-height so ascenders/descenders are not visibly clipped */
body.page-id-products header.hero {
  overflow: visible;
}
body.page-id-products .hero__content {
  overflow: visible;
}
body.page-id-products .hero__description {
  line-height: 1.1 !important;
  padding-bottom: 0.15em !important;
  overflow: visible !important;
}

/* Hero: h1-scale red line, then smaller subline (pre–pour layout; no extra block padding). */
body.page-id-products .hero__description .hero__description-accent {
  display: block;
  padding-block: 0 !important;
  line-height: 1.1;
}

body.page-id-products .hero__description .hero__description-sub {
  display: block;
  font-size: clamp(1.5rem, 4.2vw, 2.75rem) !important;
  font-weight: inherit;
  line-height: 1.12 !important;
  padding-block: 0 !important;
  margin: 0;
  background: none !important;
  -webkit-background-clip: unset !important;
  background-clip: unset !important;
  -webkit-text-fill-color: var(--color-accent, #ff2b2b) !important;
  color: var(--color-accent, #ff2b2b) !important;
}

/* Principles list: titles + paragraphs stacked on the left */
body.page-id-products .vl-products-value-table .section-table__item.grid.subgrid {
  display: flex !important;
  flex-flow: column nowrap !important;
  align-items: flex-start !important;
  gap: 0.4rem !important;
}
body.page-id-products .vl-products-value-table .section-table__item > [pos] {
  grid-column: 1 / -1 !important;
  justify-self: start !important;
  max-width: none;
}
body.page-id-products .vl-products-value-table .section-table__title,
body.page-id-products .vl-products-value-table .section-table__text {
  text-align: left !important;
}
body.page-id-products .vl-products-value-table .section-table__text .p1 {
  text-align: left;
  margin: 0 !important;
}

/* Pull quote: normal body copy (avoid .section-title huge type + text-indent + accent <em> bits) */
body.page-id-products .vl-products-pullquote-section .vl-products-pullquote .p1,
body.page-id-enterprise .vl-products-pullquote-section .vl-products-pullquote .p1 {
  text-align: left;
  margin: 0;
  max-width: none;
  line-height: 1.6;
  font-size: inherit;
  font-weight: 400;
}

/* Products page: single text system for the whole page */
body.page-id-products .section-wysiwyg__container > .text,
body.page-id-products .section-table .section-table__title,
body.page-id-products .section-table .section-table__text,
body.page-id-products .section-columns .section-columns__text,
body.page-id-products .section-title .text {
  width: 100% !important;
  max-width: var(--body-text-max, 58rem) !important;
  margin-left: auto !important;
  margin-right: auto !important;
  margin-inline: auto !important;
  justify-self: center !important;
  text-align: left !important;
}

body.page-id-products .section-wysiwyg__container > .text h1,
body.page-id-products .section-wysiwyg__container > .text h2,
body.page-id-products .section-wysiwyg__container > .text h3,
body.page-id-products .section-wysiwyg__container > .text p,
body.page-id-products .section-wysiwyg__container > .text .p1,
body.page-id-products .section-wysiwyg__container > .text .p2,
body.page-id-products .section-table .section-table__title,
body.page-id-products .section-table .section-table__text,
body.page-id-products .section-columns .section-columns__text {
  text-align: left !important;
}

/* Businesses page: mirror products single text system across full page */
body.page-id-enterprise .section-wysiwyg__container > .text,
body.page-id-enterprise .section-table .section-table__title,
body.page-id-enterprise .section-table .section-table__text,
body.page-id-enterprise .section-columns .section-columns__text,
body.page-id-enterprise .section-title .text,
body.page-id-enterprise .section-table-index .section-table-index__text {
  width: 100% !important;
  max-width: var(--body-text-max, 58rem) !important;
  margin-left: auto !important;
  margin-right: auto !important;
  margin-inline: auto !important;
  justify-self: center !important;
  text-align: left !important;
}

body.page-id-enterprise .section-wysiwyg__container > .text h1,
body.page-id-enterprise .section-wysiwyg__container > .text h2,
body.page-id-enterprise .section-wysiwyg__container > .text h3,
body.page-id-enterprise .section-wysiwyg__container > .text p,
body.page-id-enterprise .section-wysiwyg__container > .text .p1,
body.page-id-enterprise .section-wysiwyg__container > .text .p2,
body.page-id-enterprise .section-table .section-table__title,
body.page-id-enterprise .section-table .section-table__text,
body.page-id-enterprise .section-columns .section-columns__text,
body.page-id-enterprise .section-table-index .section-table-index__text {
  text-align: left !important;
}

/* Longform blocks below rail (voltislabs.uk product pages ported to static HTML) */
main .vl-product-voltis-longform {
  width: 100%;
}

main .vl-product-voltis-longform > .section {
  margin-bottom: clamp(1.75rem, 4vw, 3rem);
}

/* `.vl-product-voltis-prose-inner` sits under `.section-wysiwyg__container`, not as a direct `.grid` child. */
main .vl-product-voltis-longform .vl-product-voltis-prose .vl-product-voltis-prose-inner {
  max-width: var(--body-text-max, 58rem) !important;
  margin-inline: auto;
}

/* Rail / combined layout: longform already lives in the right column; don’t re-narrow to body-text max. */
main .vl-product-detail-combined .vl-product-voltis-longform .vl-product-voltis-prose .vl-product-voltis-prose-inner {
  max-width: none !important;
  margin-inline: 0 !important;
  width: 100% !important;
  padding-inline: var(--vl-product-prose-pad, clamp(1rem, 2.5vw, 1.75rem)) !important;
  box-sizing: border-box;
}

main .vl-product-voltis-longform .vl-product-voltis-prose-inner h2:first-child {
  margin-top: 0 !important;
}

/* Product longform: one type scale, no theme heading rules or boxed data tables. */
main .vl-product-voltis-longform .vl-product-voltis-prose-inner h2 {
  margin-top: clamp(2rem, 4vw, 2.75rem);
  margin-bottom: 0.85rem;
  font-size: clamp(1.35rem, 2.6vw, 1.65rem);
  font-weight: 600;
  line-height: 1.2;
}

main .vl-product-voltis-longform .vl-product-voltis-prose-inner h3 {
  margin-top: 1.35rem;
  margin-bottom: 0.55rem;
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  font-weight: 600;
  line-height: 1.3;
}

main .vl-product-voltis-longform .vl-product-voltis-prose-inner .p1,
main .vl-product-voltis-longform .vl-product-voltis-prose-inner li,
main .vl-product-voltis-longform .vl-product-voltis-prose-inner blockquote .p1 {
  font-size: 1rem;
  line-height: 1.55;
}

main .vl-product-voltis-longform .vl-product-voltis-prose-inner ul.vl-product-voltis-tight {
  margin: 0.5rem 0 1.25rem;
  padding-left: 1.15rem;
}

main .vl-product-voltis-longform .vl-product-voltis-prose-inner blockquote {
  margin: 1.5rem 0 0;
  padding: 0;
  border: none;
}

main .vl-product-voltis-longform .vl-product-quote-attrib {
  opacity: 0.75;
}

main .vl-product-detail-combined .vl-inner__cta {
  border-top: none;
  padding-top: 0;
  margin-top: 1.25rem;
}

/* Product prose tables: real columns, subtle header rule only (no boxed grid). */
main .vl-product-voltis-longform table.vl-product-voltis-data {
  display: table !important;
  width: 100%;
  max-width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  margin: 0.35rem 0 1.35rem;
  border: none;
  font-size: 1rem;
  line-height: 1.55;
}

main .vl-product-voltis-longform table.vl-product-voltis-data thead {
  display: table-header-group !important;
}

main .vl-product-voltis-longform table.vl-product-voltis-data tbody {
  display: table-row-group !important;
}

main .vl-product-voltis-longform table.vl-product-voltis-data tr {
  display: table-row !important;
}

main .vl-product-voltis-longform table.vl-product-voltis-data th,
main .vl-product-voltis-longform table.vl-product-voltis-data td {
  display: table-cell !important;
  vertical-align: top;
  text-align: left;
  border: none;
  background: transparent;
}

/* Heading already labels the block - hide duplicate table captions. */
main .vl-product-voltis-prose-inner :is(h2, h3, h4) + table.vl-product-voltis-data > caption {
  display: none;
}

main .vl-product-voltis-longform table.vl-product-voltis-data thead th {
  padding: 0 0 0.55rem;
  font-weight: 600;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

main .vl-product-voltis-longform table.vl-product-voltis-data tbody th[scope="row"] {
  width: 34%;
  max-width: 13rem;
  padding: 0.5rem 1.15rem 0.5rem 0;
  font-weight: 600;
}

main .vl-product-voltis-longform table.vl-product-voltis-data tbody td {
  padding: 0.5rem 0;
  font-weight: 400;
}

main .vl-product-voltis-longform table.vl-product-voltis-data tbody tr:first-child :is(th, td) {
  padding-top: 0.65rem;
}

/* Two-column compare (no row labels): equal split. */
main .vl-product-voltis-longform table.vl-product-voltis-data--compare thead th {
  width: 50%;
}

main .vl-product-voltis-longform table.vl-product-voltis-data--compare tbody td {
  width: 50%;
  padding-right: 0.75rem;
}

/* Three-column capability matrix. */
main .vl-product-voltis-longform table.vl-product-voltis-data--matrix thead th:nth-child(1),
main .vl-product-voltis-longform table.vl-product-voltis-data--matrix tbody th[scope="row"] {
  width: 38%;
}

main .vl-product-voltis-longform table.vl-product-voltis-data--matrix thead th:nth-child(2),
main .vl-product-voltis-longform table.vl-product-voltis-data--matrix thead th:nth-child(3),
main .vl-product-voltis-longform table.vl-product-voltis-data--matrix tbody td {
  width: 31%;
  padding-right: 0.65rem;
}

main .vl-product-voltis-longform ul.vl-product-voltis-tight > li + li {
  margin-top: 0.4rem;
}

main .vl-product-voltis-prose-inner .vl-product-prose-banner {
  margin: clamp(1.25rem, 3vw, 2rem) 0;
}

main .vl-product-voltis-prose-inner .vl-product-prose-banner img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
}

/* Portrait in-prose asset (~handset width on desktop; room to grow on narrow viewports). */
main .vl-product-voltis-prose-inner .vl-product-prose-banner--handset {
  width: min(20rem, 42vw);
  max-width: 100%;
  margin-inline: auto;
}

@media (max-width: 899px) {
  main .vl-product-voltis-prose-inner .vl-product-prose-banner--handset {
    width: min(24rem, 78vw);
  }
}

/* Product detail longform: no boxed panel - copy sits on the page background (see scroll theme). */
main .vl-product-detail-combined .vl-product-voltis-longform .vl-product-voltis-prose .vl-product-voltis-prose-inner {
  padding: clamp(1rem, 2.4vw, 1.65rem) 0;
  border: none;
  border-radius: 0;
  background: transparent;
  box-sizing: border-box;
}

/* In-prose banners: no extra card chrome around images. */
main .vl-product-detail-combined .vl-product-voltis-prose-inner .vl-product-prose-banner {
  margin: clamp(1.25rem, 3vw, 2rem) 0;
  padding: 0;
  border: none;
  background: transparent;
  border-radius: 0;
}

main .vl-product-detail-combined .vl-product-voltis-prose-inner .vl-product-prose-banner img {
  border-radius: 12px;
}

/* Product detail: CTA row at end of article (see product-page-cta.js) */
main .vl-product-detail-combined .vl-product-detail-prose-stack .vl-inner__cta.vl-product-detail-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(0.5rem, 1.5vw, 0.85rem);
  margin-top: clamp(2rem, 4vw, 3rem);
  padding-top: 0;
  border-top: none;
}

/* Legacy: cards without a product detail page may use --unlinked styling. */
.vl-product-card--unlinked .vl-product-card__thumb {
  cursor: default;
}
.vl-product-card--unlinked .vl-product-card__status {
  display: inline-block;
  margin-top: 0.35rem;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.45);
}
