/* ── Read more (inline expand) ───────────────────────────────── */
.tbs-readmore-rest {
  display: none;
}

.tbs-readmore-body.is-open .tbs-readmore-rest {
  display: block;
}

.tbs-readmore .tbs-readmore-btn {
  margin-top: 0.85rem;
}

/* ── World first / 2014 CTA — split layout + refined surface ─── */
#world-first-2014 .tbs-world-first-card.cta_card {
  padding: clamp(2rem, 4.5vw, 3rem) clamp(1.35rem, 4vw, 2.25rem);
  border: 1px solid rgba(20, 24, 31, 0.1);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.65) inset,
    0 18px 48px rgba(20, 24, 31, 0.07);
  background:
    linear-gradient(145deg,
      rgba(255, 255, 255, 0.55) 0%,
      transparent 42%),
    linear-gradient(168deg,
      var(--background--secondary) 0%,
      rgba(250, 248, 245, 1) 55%,
      rgba(20, 24, 31, 0.06) 100%);
}

#world-first-2014 .tbs-world-first-inner {
  width: 100%;
  max-width: min(52rem, 100%);
  margin: 0 auto;
}

#world-first-2014 .tbs-world-first-year-col {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.55rem;
  min-width: 0;
  padding-right: clamp(0.75rem, 2vw, 1.25rem);
}

#world-first-2014 .tbs-world-first-year-col .badge {
  width: fit-content;
  max-width: 100%;
}

#world-first-2014 .tbs-world-first-split {
  display: grid;
  /* Narrow year rail + body; type scales so “2014” stays inside the column */
  grid-template-columns: minmax(7.5rem, min(12.5rem, 26vw)) minmax(0, 1fr);
  gap: clamp(1.35rem, 3.5vw, 2.25rem);
  align-items: start;
}

#world-first-2014 .tbs-world-first-year-heading {
  margin: 0;
  max-width: 100%;
  font-size: clamp(2.35rem, min(7.25vw, 10vmin), 4.15rem);
  line-height: 0.92;
  letter-spacing: -0.045em;
  font-weight: 700;
  color: #14181f;
}

#world-first-2014 .tbs-world-first-year-col::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  width: 1px;
  background: linear-gradient(180deg,
      transparent,
      rgba(20, 24, 31, 0.22) 20%,
      rgba(20, 24, 31, 0.22) 80%,
      transparent);
}

#world-first-2014 .tbs-world-first-copy-col .tbs-readmore {
  max-width: 40rem;
}

@media screen and (max-width: 767px) {
  #world-first-2014 .tbs-world-first-split {
    grid-template-columns: 1fr;
    gap: 1.35rem;
  }

  #world-first-2014 .tbs-world-first-year-heading {
    font-size: clamp(2.75rem, 22vw, 4.25rem);
  }

  #world-first-2014 .tbs-world-first-year-col {
    padding-right: 0;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(20, 24, 31, 0.12);
  }

  #world-first-2014 .tbs-world-first-year-col::after {
    display: none;
  }
}

/* ── Show-more grid ──────────────────────────────────────────── */
.tbs-showmore-hidden {
  display: none;
}

.tbs-showmore-btn {
  all: unset;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1.25rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.2s;
}

.tbs-showmore-btn:hover {
  opacity: 0.9;
}

.tbs-showmore-btn svg {
  transition: transform 0.32s ease;
}

.tbs-showmore-btn.is-open svg {
  transform: rotate(180deg);
}

.uri-anatomy-btn {
  color: #b8501e;
  opacity: 1;
}

.uri-anatomy-btn:hover {
  opacity: 0.85;
}

/* URI anatomy — hero (copy + live URL + QR) */
.blog_title.uri-anatomy-hero-wrap {
  display: block;
  width: 100%;
}

.uri-anatomy-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-rows: auto auto;
  gap: 1rem 1.35rem;
  align-items: start;
  width: 100%;
}

.uri-anatomy-hero-copy {
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
}

.uri-anatomy-cta-slot {
  grid-column: 1;
  grid-row: 2;
  min-width: 0;
}

.uri-anatomy-hero-visual {
  grid-column: 2;
  grid-row: 1 / span 2;
  min-width: 0;
  align-self: stretch;
}

.uri-anatomy-hero-visual .uri-anatomy-visual-card {
  height: 100%;
}

.uri-anatomy-cta-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.6rem;
  margin-top: 0;
  max-width: 36rem;
}

.uri-anatomy-cta-block .uri-anatomy-teaser {
  margin: 0;
  max-width: none;
  line-height: 1.55;
}

#gs1-uri-anatomy .column-3x-large {
  row-gap: 1rem;
}

#gs1-uri-anatomy .about_feature-card {
  background: #ffffff !important;
  background-image: none !important;
  border: 1px solid rgba(20, 24, 31, 0.08);
  border-radius: var(--_layout---radius--large);
}

.uri-anatomy-demo-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.15rem 0.5rem;
}

.uri-anatomy-live-timer-meta {
  display: inline-flex;
  align-items: baseline;
  gap: 0.35rem;
  white-space: nowrap;
}

.uri-anatomy-live-timer-label {
  opacity: 0.85;
}

.uri-anatomy-live-timer {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: var(--text--primary, #14181f);
}

.uri-anatomy-visual-card {
  border: 1px solid var(--border--primary, rgba(0, 0, 0, 0.14));
  border-radius: 12px;
  padding: 1.05rem 1.1rem;
  background: var(--background--secondary, #fdfaf4);
  min-width: 0;
}

/* Phase highlight: soft tint only — no outline (outline read as an unwanted box border) */
.uri-anatomy-live-uri [data-uri-group].is-uri-active {
  background-color: rgba(20, 24, 31, 0.06);
  border-radius: 3px;
  box-shadow: none;
  outline: none;
}

/* GS1 anatomy card URL — keep legible on phones (global .uri-display rules go down to ~10px) */
#uri-anatomy-live-uri.uri-display {
  font-size: clamp(0.875rem, 0.72rem + 1.9vw, 0.97rem);
  line-height: 1.62;
}

.uri-anatomy-qr-frame {
  margin-top: 0.25rem;
}

.uri-anatomy-qr-frame img,
.uri-anatomy-qr-frame canvas {
  width: 148px !important;
  height: 148px !important;
  mix-blend-mode: multiply;
}

/* See It Coded — same layered bg as #world-first-2014 card (gradient only, no shadow) */
/* #see-it-coded {
  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.55) 0%,
      transparent 42%
    ),
    linear-gradient(
      168deg,
      var(--background--secondary) 0%,
      rgba(250, 248, 245, 1) 55%,
      rgba(20, 24, 31, 0.06) 100%
    );
} */

/* Layered gradient — not on tech / barrier metric cards (solid cream) */
.opposite-color:not(.techcard-item):not(.tbs-barrier-integrity__metric) {
  background:
    linear-gradient(145deg,
      rgba(255, 255, 255, 0.55) 0%,
      transparent 42%),
    linear-gradient(168deg,
      var(--background--secondary) 0%,
      rgba(250, 248, 245, 1) 55%,
      rgba(20, 24, 31, 0.06) 100%);
}

.background-secondary {
  background:
    linear-gradient(145deg,
      rgba(255, 255, 255, 0.55) 0%,
      transparent 42%),
    linear-gradient(168deg,
      var(--background--secondary) 0%,
      rgba(250, 248, 245, 1) 55%,
      rgba(20, 24, 31, 0.06) 100%);
}

/* Get in touch — row height from copy column; image fills (desktop) */
#get-in-touch .tbs-contact-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 2.75rem);
  align-items: stretch;
}

#get-in-touch .tbs-contact-split__media {
  grid-column: 1;
  grid-row: 1;
  position: relative;
  min-height: 0;
  align-self: stretch;
  border-radius: var(--_layout---radius--large);
  overflow: hidden;
  background-color: var(--background--secondary);
}

#get-in-touch .tbs-contact-split__figure {
  position: absolute;
  inset: 0;
  margin: 0;
  overflow: hidden;
}

#get-in-touch .tbs-contact-split__figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 52%;
}

#get-in-touch .tbs-contact-split__content {
  grid-column: 2;
  grid-row: 1;
  align-self: start;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  max-width: min(38rem, 100%);
}

#get-in-touch .tbs-contact-split__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  align-items: center;
}

@media screen and (max-width: 991px) {
  #get-in-touch .tbs-contact-split {
    grid-template-columns: 1fr;
  }

  #get-in-touch .tbs-contact-split__media {
    grid-column: 1;
    grid-row: auto;
    min-height: clamp(220px, 52vw, 340px);
  }

  #get-in-touch .tbs-contact-split__content {
    grid-column: 1;
    grid-row: auto;
  }

  #get-in-touch .tbs-contact-split__figure img {
    object-position: center 45%;
  }
}

/* Compliance — dark ink panel */
#compliance.tbs-compliance-section {
  background-color: #14181f;
  border-top-color: rgba(255, 255, 255, 0.12);
}

#compliance .h5-heading {
  color: #fff;
}

#compliance .tbs-compliance-panel {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--_layout---radius--large);
  overflow: hidden;
  background: rgba(0, 0, 0, 0.22);
  box-sizing: border-box;
}

#compliance .tbs-compliance-panel__cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-width: 0;
  padding: clamp(1rem, 2.4vw, 1.35rem) clamp(1rem, 2.8vw, 1.5rem);
  border-right: 1px solid rgba(255, 255, 255, 0.18);
  box-sizing: border-box;
}

#compliance .tbs-compliance-panel__cell:last-child {
  border-right: none;
}

#compliance .tbs-compliance-panel__line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 0.35rem 0.55rem;
  margin: 0;
  width: 100%;
  max-width: 100%;
}

#compliance .tbs-compliance-panel__line .subheading-large {
  width: auto;
  color: #fff;
}

#compliance .tbs-compliance-panel__detail {
  color: rgba(255, 255, 255, 0.82);
}

#compliance .tbs-compliance-panel__arrow {
  color: rgba(255, 255, 255, 0.45);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1;
  flex-shrink: 0;
}

@media screen and (max-width: 991px) {
  #compliance .tbs-compliance-panel {
    grid-template-columns: 1fr;
  }

  #compliance .tbs-compliance-panel__cell {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  }

  #compliance .tbs-compliance-panel__cell:last-child {
    border-bottom: none;
  }
}

/* Footer — exact rgba(17, 85, 150) only */
.footer_section {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer_section .divider.is-muted {
  background-color: rgba(255, 255, 255, 0.12);
}

.footer_section :is(h1, h2, h3, h4, h5, h6) {
  color: var(--text--alternate, #fff);
}

.footer_section .badge.w-variant-79d9bc8a-88fc-b074-bfc4-361d8e9782af {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.38);
  background: transparent;
}

/* TCO CTA — full-section photo + gradient wash (swap URL to change art) */
.tbs-tco-cta {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-top-color: rgba(20, 24, 31, 0.12);
}

.tbs-tco-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-color: var(--background--secondary, #fdfaf4);
  background-image: url("../images/Total-cost-of-ownership.webp");
  background-position: 50% 35%;
  background-size: cover;
  background-repeat: no-repeat;
  transform: scaleX(-1);
  transform-origin: center;
}

.tbs-tco-cta.is-bg-preview::before {
  background-image: url("../images/Total-cost-of-ownership-500.jpg");
}

.tbs-tco-cta.is-bg-ready::before {
  background-image: url("../images/Total-cost-of-ownership.webp");
}

.tbs-tco-cta::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  /* Same idea as #the-solution image-card overlays — dark scrim over photo */
  background: linear-gradient(105deg,
      rgba(0, 0, 0, 0.72) 0%,
      rgba(0, 0, 0, 0.56) 42%,
      rgba(0, 0, 0, 0.4) 72%,
      rgba(0, 0, 0, 0.32) 100%);
}

.tbs-tco-cta .container-large {
  position: relative;
  z-index: 2;
}

.tbs-tco-cta__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(1.25rem, 3vw, 2.75rem);
  align-items: end;
}

.tbs-tco-cta__main {
  max-width: min(46rem, 100%);
}

.tbs-tco-cta__badge {
  width: fit-content;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.38);
  color: #fff;
}

.tbs-tco-cta__main h5 {
  color: #fff;
}

.tbs-tco-cta__lede {
  margin-bottom: 0;
  margin-top: 0.35rem;
  color: rgba(255, 255, 255, 0.82);
}

.tbs-tco-cta__actions {
  flex-shrink: 0;
}

@media screen and (max-width: 991px) {
  .tbs-tco-cta::before {
    background-position: center 35%;
  }

  .tbs-tco-cta::after {
    background: linear-gradient(180deg,
        rgba(0, 0, 0, 0.78) 0%,
        rgba(0, 0, 0, 0.62) 48%,
        rgba(0, 0, 0, 0.48) 100%);
  }

  .tbs-tco-cta__layout {
    grid-template-columns: 1fr;
    align-items: flex-start;
  }

  .tbs-tco-cta__actions {
    justify-self: flex-start;
  }
}

/* The Solution — three equal image cards (same layout as #reality) */
#the-solution .grid-three-column {
  grid-column-gap: 0.75rem;
  grid-row-gap: 0.75rem;
}

#the-solution .image-card.h-100 {
  height: clamp(340px, 34vw, 470px);
}

#the-solution .image-card.h-100 .image-card_overlay {
  background-image: linear-gradient(180deg,
      rgba(0, 0, 0, 0.12) 35%,
      rgba(0, 0, 0, 0.74) 100%);
  background-color: transparent;
}

#the-solution .image-card .image-card_overlay {
  background-color: transparent;
  background-image: linear-gradient(180deg,
      rgba(0, 0, 0, 0.08) 20%,
      rgba(0, 0, 0, 0.38) 52%,
      rgba(0, 0, 0, 0.78) 100%);
}

/* See It Coded — white QR + human-readable beside it (no white qr-frame box) */
#see-it-coded {
  position: relative;
}

#see-it-coded .deals_grid {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  padding: 2.5rem 2.75rem;
  background-color: #1c2819;
}

#see-it-coded .deals_grid::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../images/qu0image1.webp");
  background-repeat: no-repeat;
  background-position: right bottom;
  background-size: 1120px auto;
  pointer-events: none;
  z-index: 0;
}

#see-it-coded.is-bg-preview .deals_grid::before {
  background-image: url("../images/qu0image1-500.jpeg");
}

#see-it-coded.is-bg-ready .deals_grid::before {
  background-image: url("../images/qu0image1.webp");
}

@media screen and (max-width: 991px) {
  #see-it-coded .deals_grid::before {
    background-image: url("../images/qu0image2.webp");
    background-size: min(100%, 600px) auto;
    background-position: center bottom;
  }

  #see-it-coded.is-bg-preview .deals_grid::before {
    background-image: url("../images/qu0image2-500.jpeg");
  }

  #see-it-coded.is-bg-ready .deals_grid::before {
    background-image: url("../images/qu0image2.webp");
  }
}

@media screen and (min-width: 992px) {
  #see-it-coded .tbs-seeit-qr-row {
    bottom: 0;
    right: 167px;
  }
}

#see-it-coded .deals_grid::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to right,
      rgba(8, 14, 24, 0.8),
      rgba(8, 14, 24, 0.1));
  pointer-events: none;
  z-index: 1;
}

#see-it-coded .deals_grid>* {
  position: relative;
  z-index: 2;
}

#see-it-coded .tbs-seeit-qr-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  background-color: rgba(255, 255, 255, 0.25);
  padding: 5px;
  width: fit-content;
  position: absolute;
  z-index: 3;
}

#see-it-coded .tbs-seeit-qr {
  flex-shrink: 0;
  margin: 0;
  padding: 0;
  background: transparent;
  border-radius: 0;
  width: auto;
  display: block;
  /* White modules on black: screen-blend drops black onto the photo (transparent effect) */
  mix-blend-mode: screen;
}

#see-it-coded .tbs-seeit-human {
  flex: 1 1 10rem;
  min-width: 0;
  margin: 0;
  color: #fff;
  font-size: 8px;
  font-weight: 500;
  line-height: 1.55;
  text-align: left;
}

#see-it-coded .tbs-seeit-lot {
  display: inline-block;
  max-width: 80px;
  line-height: 1;
  overflow-wrap: anywhere;
  word-break: break-word;
}

#see-it-coded .tbs-seeit-qr img,
#see-it-coded .tbs-seeit-qr canvas {
  width: 40px !important;
  height: 40px !important;
  display: block;
  /* qrcodejs is raster (canvas/PNG), not SVG — high-res draw + downscale keeps edges sharp */
  image-rendering: pixelated;
}

/* URI anatomy — expandable breakdown (panel full width below hero row) */
.uri-anatomy-expand {
  margin-top: 0;
}

.uri-anatomy-expand.uri-anatomy-panel-below {
  width: 100%;
  margin-top: 0.35rem;
}

.uri-anatomy-teaser {
  margin: 0 0 0.75rem;
  max-width: 46rem;
  line-height: 1.55;
}

.uri-anatomy-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.38s ease;
}

.uri-anatomy-panel.is-open {
  grid-template-rows: 1fr;
}

.uri-anatomy-panel-inner {
  overflow: hidden;
}

.uri-anatomy-panel.is-open .uri-anatomy-panel-inner {
  padding-top: 1rem;
}

.uri-production-note {
  margin-top: 2.75rem;
}

img.tbs-progressive-image {
  transition:
    filter 0.45s ease,
    opacity 0.45s ease;
}

img.tbs-progressive-image.is-low {
  filter: blur(12px);
  transform: scale(1.02);
}

img.tbs-progressive-image.is-sharp {
  filter: none;
  transform: none;
}

#see-it-coded.is-bg-preview .deals_grid::before,
.tbs-tco-cta.is-bg-preview::before {
  filter: blur(14px);
  transition: filter 0.45s ease;
}

#see-it-coded.is-bg-ready .deals_grid::before,
.tbs-tco-cta.is-bg-ready::before {
  filter: none;
}