/******************************************
  TYPE-SPECIFIC COLOR DEFINITIONS
******************************************/

:root {
  --tagged-surface-0: var(--section-light-background-color);
  --tagged-surface-1: var(--section-medium-background-color);
  --tagged-surface-2: var(--section-dark-background-color);
  --tagged-surface-3: var(--section-darkest-background-color);
  --tagged-surface-4: var(--section-darkestdark-background-color);
  --tagged-surface-5: var(--section-dusk-background-color);
  --tagged-surface-6: var(--section-dusker-background-color);
}


/******************************************
  ARTICLE WRAPPER
******************************************/
.tagged-card {
  /* The <article> can just be a simple container */
  width: clamp(275px, 208.3333px + 16.6667vw, 400px);
  /* 1150 - 400 */
  min-width: clamp(275px, 208.3333px + 16.6667vw, 400px);
  /* 1150 - 400 */
  max-width: clamp(275px, 208.3333px + 16.6667vw, 400px);
  /* 1150 - 400 */
  border: 1px solid var(--tagged-surface-1);
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: visible;
  user-select: none !important;

  container-type: inline-size;
  /* shuts off highlighting everywhere */

  /* so we can absolutely position the compare toggle */
  /* We no longer set display:flex here */
}



/******************************************
  HOVER EFFECTS
******************************************/
/* ─────────────────────────────────────────────────────────────
   Tagged-card hover effects
   (DROP-IN – replace the entire @media block) 
───────────────────────────────────────────────────────────── */
@media (hover: hover) and (pointer: fine) {

  /* underline brand / model only when:
     – the card is hovered
     – NOT hovering tags, compare-btn, or the LINK-WRAPPER         */
  .tagged-card:not(:has(.tagged-card-tags:hover,
      .compare-tagged-btn:hover,
      .tagged-card-link-wrapper:hover)):hover .tagged-card-brand,
  .tagged-card:not(:has(.tagged-card-tags:hover,
      .compare-tagged-btn:hover,
      .tagged-card-link-wrapper:hover)):hover .tagged-card-model {
    text-decoration: underline;
  }

  /* arrow bounce – same “inactive-only” rule */
  .tagged-card:not(:has(.tagged-card-tags:hover,
      .compare-tagged-btn:hover,
      .tagged-card-link-wrapper:hover)):hover .tagged-card-arrow {
    animation: bounceLeftRight 1s ease-in-out infinite;
  }
}



/* Arrow bounce keyframes */
@keyframes bounceLeftRight {

  0%,
  100% {
    transform: translateX(0);
  }

  25% {
    transform: translateX(-3px);
  }

  50% {
    transform: translateX(3px);
  }

  75% {
    transform: translateX(-3px);
  }
}

/******************************************
  THE ANCHOR AS FLEX CONTAINER
******************************************/

/******************************************
  IMAGE
******************************************/
.tagged-card-image {
  position: relative;
  /* so we can absolutely position the compare toggle */
}

.tagged-card-image img {
  width: 100%;
  height: clamp(150px, -13.6364px + 27.2727vw, 300px);
  /* 1150 - 400 */
  display: block;
  object-fit: contain;
  object-position: center;
  cursor: pointer;
}

/* Watermark container, pinned to bottom-right */
.tagged-card-watermark {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  z-index: 1;

}

/* The logo image dimensions and optional styling */
.tagged-card-watermark svg {
  width: calc(9cqw + clamp(0px, 10.4545px + -0.9091vw, 5px));
  height: calc(9cqw + clamp(0px, 10.4545px + -0.9091vw, 5px));
  opacity: 0.85 !important;
}



/* /public/css/card_tagged.css — APPEND these rules near your image section */
.tagged-card-image img.blur-up {
  will-change: filter, transform;
}

.tagged-card-image img.blur-up.is-loaded {
  filter: none;
  transform: none;
}



/************************************************************************************/
/*    COMPARE (VAULT) TOGGLE
/************************************************************************************/
.tagged-card .compare-toggle {
  position: absolute;
  top: 1rem;
  right: 1rem;
  box-sizing: border-box;
  z-index: 1000;
  -webkit-tap-highlight-color: transparent;
  pointer-events: auto;
  overflow: hidden;
  /* <— re-enable */
}

/* Hide the actual checkbox */
.tagged-card .compare-checkbox {
  display: none;
}

/* Label: Small square by default with smooth transitions */
.tagged-card .compare-label {
  display: flex;
  align-items: center;
  justify-content: center;
  width: max-content;
  height: max-content;
  aspect-ratio: 1;
  padding: .25rem .25rem;
  background-color: var(--card-color);
  color: var(--white-color-1);
  font-family: var(--identity-font);
  font-weight: 600;
  letter-spacing: -1px;
  text-transform: capitalize;
  border-radius: 2px;
  cursor: pointer;
  box-sizing: border-box;
  overflow: hidden;
  position: relative;
  transition: background-color 0.3s;

  font-size: var(--font-size-16px);
  min-width: clamp(var(--font-size-26px), 22.8px + 0.8vw, var(--font-size-32px));
  min-height: clamp(var(--font-size-26px), 22.8px + 0.8vw, var(--font-size-32px));

  font-size: calc(4.5cqw + clamp(0px, 6.2727px + -0.5455vw, 3px));
  width: calc(8cqw + clamp(0px, 6.2727px + -0.5455vw, 3px));
  height: calc(8cqw + clamp(0px, 6.2727px + -0.5455vw, 3px));
}



/* Symbol container */
.tagged-card .compare-symbol {
  position: relative;
  display: inline-flex;
  display: flex;
  width: 1.15em;
  height: 1.15em;
  flex: 0 0 1.15em;
  align-items: center;
  justify-content: center;
  user-select: none;
  box-sizing: content-box;

  font-size: var(--font-size-18px);
  font-size: calc(4.5cqw + clamp(0px, 6.2727px + -0.5455vw, 3px));
}



/* Plus and minus symbols with flip transition */
.tagged-card .compare-symbol .minus {
  display: none;
  justify-content: center;
  margin-bottom: .2rem;
  width: 1em;

}

.tagged-card .compare-symbol .plus {
  display: flex;
  justify-content: center;
  width: 1em;
}




/* ──────────────────────────────────────────────────────────────
   LOADERS SECTION (updated₁)
   ────────────────────────────────────────────────────────────── */


.tagged-card .toggle-wrapper {
  align-self: center !important;
  justify-self: center !important;
  height: 100%;
}


.tagged-card .toggle-spinner {
  width: 1em;
  height: 1em;
  border: 0.11rem solid var(--white-color-1);

}

.tagged-card .toggle-caution svg {
  width: 1em;
  height: 1em
}

/* Text: Hidden by default, with slide and fade */
.tagged-card .compare-text {
  display: flex;
  max-width: 0;
  white-space: nowrap;
  overflow: hidden;
}



@media (hover: hover) and (pointer: fine) {

  .tagged-card .compare-label:hover,
  .tagged-card .compare-label:active,
  .tagged-card .compare-checkbox:focus+.compare-label {
    width: fit-content;
    padding: .25rem .5rem .25rem 1.25rem;
    aspect-ratio: unset;
    justify-content: space-between;
  }

  .tagged-card .compare-label:hover .compare-text {
    display: flex;
    align-items: flex-start;
    max-width: fit-content;
    min-height: fit-content;
    margin-right: 1.25rem;
  }
}



/* Touch-only “expanded” state (unchanged) */
@media (hover: none) and (pointer: coarse) {
  .tagged-card .compare-label.touch-open {
    width: fit-content;
    padding: .25rem .5rem .25rem 1.25rem;
    aspect-ratio: unset;
    justify-content: space-between;
  }

  .tagged-card .compare-label.touch-open .compare-text {
    display: inline-block;
    max-width: fit-content;
    opacity: 1;
    margin-right: 1rem;
  }
}




/******************************************
  TITLE SECTION
******************************************/
.tagged-card-title {
  padding: 1rem;
  background-color: var(--dark-color-1);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  font-family: var(--identity-font);
  border-bottom: 0.85rem solid var(--card-color);
}

.tagged-card-title-wrapper {
  letter-spacing: -1px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.tagged-card-brand {
  font-size: var(--ft-14-13);
  font-weight: 400;
  line-height: 1.2;
  color: var(--white-color-2);
}

.tagged-card-model {
  font-size: var(--ft-17-16);
  font-weight: 700;
  line-height: 1.2;
  color: var(--white-color-1);
}

/******************************************
  Alink btn
******************************************/

/******************************************
  Alink btn  (drop this into card_tagged.css under the "Alink btn" section)
******************************************/
.tagged-card-alink-btnr {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
}

.tagged-card-alink-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 0.75rem;
  background-color: transparent;
  border: 1px solid var(--card-color);
  border-radius: 2px;
  font-family: var(--identity-font);
  font-weight: 500;
  font-size: var(--ft-15-14);
  line-height: 1;
  color: var(--card-color);
  cursor: pointer;
  text-transform: none;
}

@media (hover: hover) and (pointer: fine) {
  .tagged-card-alink-btn:hover {
    background-color: var(--card-color);
    color: var(--white-color-1);
  }
}

.tagged-card-alink-btn:focus-visible {
  outline: 2px solid var(--white-color-1);
  outline-offset: 2px;
}


/******************************************
  INFO SECTION (FLEX: 1)   
******************************************/
.tagged-card-info {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
}

.tagged-card-description {
  font-family: var(--identity-font);
  font-size: var(--ft-14-13);
  /* 1150 - 400 */
  color: var(--white-color-1);
  line-height: 1.4;
  cursor: pointer;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tagged-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 2rem 0 1rem 0;
}

.tagged-card-link-wrapper {
  display: flex;
  padding: 1rem;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  height: 100%;
  cursor: grab;
}

/******************************************
  TAG "PILLS"
******************************************/

@media (max-width: 825px) {
  .tagged-card-tags {
    margin: 1.5rem 0 0.5rem 0;
  }
}

@media (max-width: 600px) {
  .tagged-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin: 1rem 0 0.25rem 0;
  }
}

.tag-item {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--card-color);
  background-color: #1e1e1e;
  border-radius: 1px;
  padding: 0.4rem 0.75rem;
}

.tag-color {
  display: inline-block;
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  background-color: var(--card-color);
  margin-right: 0.4rem;
}

.tag-value {
  font-family: var(--identity-font);
  font-size: var(--ft-13-12);
  color: var(--white-color-1);
}

/* Only capitalize the label text, not the suffix */
.tag-main {
  text-transform: capitalize;
  color: var(--white-color-1);
}

.tag-suffix {
  /* explicitly keep suffix as-is (lowercase, etc.) */
  text-transform: none;
}

/******************************************
  FOOTER SECTION (FIXED HEIGHT)
******************************************/
.tagged-card-footer {
  cursor: pointer;
  position: relative;
  border-top: 1px solid var(--tagged-surface-1);
  /* Fixed height so the footer remains the same size */
  flex-shrink: 0;
  /* Remove vertical padding to keep exact height;
     keep horizontal padding for spacing */
  padding: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.tagged-card-footer-left {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.tagged-card-author,
.tagged-card-separator,
.tagged-card-date {
  font-family: var(--identity-font);
  color: var(--grey-color-2);
  font-size: var(--ft-12-11)
    /* 1150 - 400 */
}

.tag-item:hover .tag-value {
  text-decoration-line: underline;
  /* keep the underline */
  text-decoration-color: var(--white-color-1);
  text-decoration-thickness: 1px;
  /* exact line weight */
  text-underline-offset: 1px;
}

/******************************************
  ARROW (ABSOLUTE OVERLAP)
******************************************/
.tagged-card-arrow {
  position: absolute;
  top: -0.9rem;
  /* overlaps the border line */
  right: 1rem;
  background-color: var(--card-color);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(24px, 20.8px + 0.8vw, 30px);
  /* 1150 - 400 */
  height: clamp(24px, 20.8px + 0.8vw, 30px);
  /* 1150 - 400 */
  border-radius: 2px;

  width: calc(7.5cqw + clamp(0px, 6.2727px + -0.5455vw, 3px));
  height: calc(7.5cqw + clamp(0px, 6.2727px + -0.5455vw, 3px));
}

.tagged-card-arrow svg {
  fill: #fff;
}

@media (max-width:825px) {
  .tagged-card-arrow {
    width: 7.75cqw;
    height: 7.75cqw;
  }
}

@media (max-width:600px) {
  .tagged-card-arrow {
    width: 8cqw;
    height: 8cqw;
  }


}


/******************************************
Compare Btns
******************************************/

.tagged-comapre-wrapper {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  width: 100%;
  margin-top: .5rem;
}


.compare-tagged-btns-text {
  font-family: var(--identity-font);
  font-size: var(--ft-14-13);
  color: var(--white-color-1);
  margin-right: .5rem;
  font-weight: 400;
  text-transform: uppercase;
}


.compare-tagged-btn-wrapper {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.compare-tagged-btn {
  display: inline-flex;
  align-items: center;
  aspect-ratio: 1 !important;
  justify-content: center;
  border: 1px solid var(--tagged-surface-1);
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.compare-tagged-btn img {
  width: calc(2.75rem + clamp(0px, 6.2727px + -0.5455vw, 3px));
  height: calc(2.75rem + clamp(0px, 6.2727px + -0.5455vw, 3px)) !important;
  aspect-ratio: 1 !important;
}

@media (hover: hover) and (pointer: fine) {
  .compare-tagged-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.25);
    border: 1px solid var(--card-color);
  }
}


/* ---------- tooltip ---------- */
.compare-tagged-tooltip {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  padding: 0.45rem 0.65rem;
  background: var(--card-color);
  border: 1px solid var(--tagged-surface-1);
  border-radius: 2px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.45);
  color: var(--white-color-1);
  font-family: var(--identity-font);
  font-size: var(--ft-12-11);
  line-height: 1.35;
  text-align: center;

  display: block;
  min-width: clamp(155px, 51.3636px + 17.2727vw, 250px);
  max-width: clamp(155px, 51.3636px + 17.2727vw, 250px);
  white-space: normal;
  word-break: break-word;

  text-transform: capitalize;
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
  z-index: 30;
  z-index: 99999 !important;
}

.compare-tagged-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: var(--card-color);
  z-index: 99999 !important;
}

@media (hover: hover) and (pointer: fine) {
  .compare-tagged-btn:hover .compare-tagged-tooltip {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}


@media (max-width:600px) {
  .compare-tagged-btns-text {
    font-size: var(--fm-13-12);
  }

}


/******************************************
  HOVER EFFECTS — underline only on intended link areas
******************************************/
@media (hover: hover) and (pointer: fine) {

  /* reset: never underline by default */
  .tagged-card .tagged-card-brand,
  .tagged-card .tagged-card-model {
    text-decoration: none;
  }

  /* A) Hovering the title wrapper itself */
  .tagged-card-title-wrapper:hover .tagged-card-brand,
  .tagged-card-title-wrapper:hover .tagged-card-model {
    text-decoration: underline;
  }

  /* B) Hovering the lower description/link wrapper */
  .tagged-card:has(.tagged-card-link-wrapper:hover) .tagged-card-brand,
  .tagged-card:has(.tagged-card-link-wrapper:hover) .tagged-card-model {
    text-decoration: underline;
  }

  /* C) Hovering the MAIN card link area (not footer),
        but NOT while pointer is over the deal button */
  .tagged-card .tagged-card-link:not(.footer-link):hover:not(:has(.tagged-card-alink-btn:hover)) .tagged-card-brand,
  .tagged-card .tagged-card-link:not(.footer-link):hover:not(:has(.tagged-card-alink-btn:hover)) .tagged-card-model {
    text-decoration: underline;
  }

  /* D) NEW: if there is NO "View Deal" button,
        hovering the title bar should also underline */
  .tagged-card-title:hover:not(:has(.tagged-card-alink-btn)) .tagged-card-brand,
  .tagged-card-title:hover:not(:has(.tagged-card-alink-btn)) .tagged-card-model {
    text-decoration: underline;
  }

  /* Arrow bounce follows the same triggers */
  .tagged-card:has(.tagged-card-title-wrapper:hover) .tagged-card-arrow,
  .tagged-card:has(.tagged-card-link-wrapper:hover) .tagged-card-arrow,
  .tagged-card .tagged-card-link:not(.footer-link):hover:not(:has(.tagged-card-alink-btn:hover)) .tagged-card-arrow,
  .tagged-card:has(.tagged-card-title:hover:not(:has(.tagged-card-alink-btn))) .tagged-card-arrow {
    animation: bounceLeftRight 1s ease-in-out infinite;
  }

  /* Kill underline/bounce when hovering the title bar that HAS the button,
     or hovering the button itself */
  .tagged-card:has(.tagged-card-title:hover):has(.tagged-card-alink-btn):not(:has(.tagged-card-title-wrapper:hover)) .tagged-card-brand,
  .tagged-card:has(.tagged-card-title:hover):has(.tagged-card-alink-btn):not(:has(.tagged-card-title-wrapper:hover)) .tagged-card-model {
    text-decoration: none !important;
  }

  .tagged-card:has(.tagged-card-alink-btn:hover) .tagged-card-arrow,
  .tagged-card:has(.tagged-card-title:hover):has(.tagged-card-alink-btn):not(:has(.tagged-card-title-wrapper:hover)) .tagged-card-arrow {
    animation: none !important;
  }
}


/* /public/css/card_tagged.css — APPEND near your slider styles */
/* Always show a CLOSED grabber while dragging horizontal rows */
.egXXL-tagged-cards-scroller-recommended,
.egXXL-tagged-cards-scroller-similar {
  cursor: grab;
  cursor: -webkit-grab;
}

.egXXL-tagged-cards-scroller-recommended.grabbing,
.egXXL-tagged-cards-scroller-similar.grabbing,
.egXXL-tagged-cards-scroller-recommended:active,
.egXXL-tagged-cards-scroller-similar:active {
  cursor: grabbing !important;
  cursor: -webkit-grabbing !important;
}

/* Force the closed-grabber for EVERYTHING inside while dragging */
.egXXL-tagged-cards-scroller-recommended.grabbing *,
.egXXL-tagged-cards-scroller-similar.grabbing *,
.egXXL-tagged-cards-scroller-recommended:active *,
.egXXL-tagged-cards-scroller-similar:active * {
  cursor: grabbing !important;
  cursor: -webkit-grabbing !important;
}


































.brand-tagged .tagged-card {
  /* The <article> can just be a simple container */
  width: clamp(225px, 185px + 10vw, 300px);
  /* 1150 - 400 */
  min-width: clamp(225px, 185px + 10vw, 300px);
  /* 1150 - 400 */
  max-width: clamp(225px, 185px + 10vw, 300px);
  border-radius: 0;
}


.brand-tagged .tagged-card img {
  height: unset;
  aspect-ratio: 4.65/2.75;
}

.brand-tagged .tagged-card-brand {
  font-size: var(--ft-13-12);
}

.brand-tagged .tagged-card-model {
  font-size: var(--ft-16-15);
}

.brand-tagged .tagged-card-alink-btn {
  font-size: var(--ft-14-13);
}


.brand-tagged .tagged-card-description {
  display: none;
}


.brand-tagged .tagged-card-tags {
  margin: .5rem 0 1rem;
}


/* /public/css/card_tagged.css — APPEND
   Limit visible tag "pills" purely with CSS
   • Default cap for brand-tagged rows: show only the first 4 tags
   • Utility caps: apply .tag-cap-3 / .tag-cap-4 / .tag-cap-5 (or data-tagcap="N")
*/

/* 1) Default for brand-tagged rows — show first 4, hide the rest */

.tagged-card-tags .tag-item:nth-child(n + 4) {
  display: none !important;
}

/* 2) Utility classes (apply on any ancestor wrapper) */
.tag-cap-3 .tagged-card-tags .tag-item:nth-child(n + 4) {
  display: none !important;
}

.tag-cap-4 .tagged-card-tags .tag-item:nth-child(n + 5) {
  display: none !important;
}

.tag-cap-5 .tagged-card-tags .tag-item:nth-child(n + 6) {
  display: none !important;
}

/* 3) Data-attribute variants (e.g., <section data-tagcap="3"> … ) */
[data-tagcap="3"] .tagged-card-tags .tag-item:nth-child(n + 4) {
  display: none !important;
}

[data-tagcap="4"] .tagged-card-tags .tag-item:nth-child(n + 5) {
  display: none !important;
}

[data-tagcap="5"] .tagged-card-tags .tag-item:nth-child(n + 6) {
  display: none !important;
}







.egXXL-tagged-cards-grid .tagged-card {
  width: 100%;
  min-width: 0;
  max-width: none;
}


.egXXL-tagged-cards-grid .tagged-card-link-wrapper {
  cursor: pointer;
}








.egXXL-tagged-cards-grid.titled-grid {
  margin: 32px 0
}

















.layout-side .tagged-card {
  /* The <article> can just be a simple container */
  width: clamp(225px, 185px + 10vw, 300px);
  /* 1150 - 400 */
  min-width: clamp(225px, 185px + 10vw, 300px);
  /* 1150 - 400 */
  max-width: clamp(225px, 185px + 10vw, 300px);
  border-radius: 0;
}


.layout-side .tagged-card img {
  height: unset;
  aspect-ratio: 4.65/2.75;
}

.layout-side .tagged-card-brand {
  font-size: var(--ft-13-12);
}

.layout-side.tagged-card-model {
  font-size: var(--ft-16-15);
}

.layout-side .tagged-card-alink-btn {
  font-size: var(--ft-14-13);
}

.layout-side  .compare-tagged-btns-text {
font-size: var(--ft-13-12);
}

.layout-side .tagged-card-description {
  display: none;
}

.layout-side .tagged-card-tags {
  margin: .5rem 0 1rem;
}


/* /public/css/card_tagged.css — APPEND
   Limit visible tag "pills" purely with CSS
   • Default cap for brand-tagged rows: show only the first 4 tags
   • Utility caps: apply .tag-cap-3 / .tag-cap-4 / .tag-cap-5 (or data-tagcap="N")
*/

/* 1) Default for brand-tagged rows — show first 4, hide the rest */
.layout-side .tagged-card-tags .tag-item:nth-child(n + 4) {
  display: none !important;
}

/* 2) Utility classes (apply on any ancestor wrapper) */
.layout-side .tag-cap-3 .tagged-card-tags .tag-item:nth-child(n + 4) {
  display: none !important;
}

.layout-side .tag-cap-4 .tagged-card-tags .tag-item:nth-child(n + 5) {
  display: none !important;
}

.layout-side .tag-cap-5 .tagged-card-tags .tag-item:nth-child(n + 6) {
  display: none !important;
}

/* 3) Data-attribute variants (e.g., <section data-tagcap="3"> … ) */
[data-tagcap="3"] .layout-side .tagged-card-tags .tag-item:nth-child(n + 4) {
  display: none !important;
}

[data-tagcap="4"] .layout-side .tagged-card-tags .tag-item:nth-child(n + 5) {
  display: none !important;
}

[data-tagcap="5"] .layout-side .tagged-card-tags .tag-item:nth-child(n + 6) {
  display: none !important;
}









.layout-side .egXXL-tagged-cards-grid .tagged-card {
  width: 100%;
  min-width: 0;
  max-width: none;
}