/* IONTMAX Theme | Blog - General | source: 2026-11-22 state export
   Homepage carousel preserved verbatim; category styles are scoped to direct listing.
   Homepage heading typography remains owned by Homepage - Section headings.
*/

/* ===== 1. HOMEPAGE CAROUSEL — ORIGINAL ===== */
/* IONTMAX Theme — Homepage - Blog carousel
   v4 — geometry + controls + interaction aligned with Hlavní banner carousel
   Ownership: homepage .homepage-blog-wrapper.blog-wrapper only.
*/

body.type-index .homepage-blog-wrapper.blog-wrapper,
body.in-index .homepage-blog-wrapper.blog-wrapper,
body.template-index .homepage-blog-wrapper.blog-wrapper,
body.homepage .homepage-blog-wrapper.blog-wrapper,
body.home .homepage-blog-wrapper.blog-wrapper {
  --im-blog-inset: clamp(16px, 4.2vw, 72px);
  --im-blog-gap: 10px;
  --im-blog-cards: 4.15;
  --im-blog-radius: 8px;
  --im-blog-progress-dot: 7px;
  --im-blog-progress-line: 34px;
  --im-blog-progress-gap: 10px;
  --im-blog-arrow-size: 52px;

  --im-copy-x: clamp(18px, 1.9vw, 34px);
  --im-copy-y: clamp(18px, 1.9vw, 34px);
  --im-title: clamp(18px, 1.45vw, 26px);

  position: relative !important;
  left: 50% !important;
  display: block !important;
  box-sizing: border-box !important;

  width: var(
    --iontmax-homepage-section-width,
    min(
      calc(100vw - (var(--im-pad, clamp(16px, 4.2vw, 72px)) * 2)),
      var(--im-max, 1680px)
    )
  ) !important;
  max-width: var(--iontmax-homepage-section-max, var(--im-max, 1680px)) !important;

  margin: 34px 0 48px !important;
  padding: 0 !important;
  transform: translateX(-50%) !important;

  float: none !important;
  clear: both !important;
  overflow: visible !important;
  background: transparent !important;
}

/* Heading typography is owned by Homepage - Section headings.
   This module owns spacing only. */
body.type-index .homepage-blog-wrapper.blog-wrapper > .homepage-group-title,
body.in-index .homepage-blog-wrapper.blog-wrapper > .homepage-group-title,
body.template-index .homepage-blog-wrapper.blog-wrapper > .homepage-group-title,
body.homepage .homepage-blog-wrapper.blog-wrapper > .homepage-group-title,
body.home .homepage-blog-wrapper.blog-wrapper > .homepage-group-title {
  display: block !important;
  width: 100% !important;
  margin: 0 0 20px !important;
  padding: 0 !important;
}

/* Safe visible fallback if JS is delayed or unavailable. */
body.type-index .homepage-blog-wrapper.blog-wrapper:not([data-iontmax-blog-carousel="ready"]),
body.in-index .homepage-blog-wrapper.blog-wrapper:not([data-iontmax-blog-carousel="ready"]),
body.template-index .homepage-blog-wrapper.blog-wrapper:not([data-iontmax-blog-carousel="ready"]),
body.homepage .homepage-blog-wrapper.blog-wrapper:not([data-iontmax-blog-carousel="ready"]),
body.home .homepage-blog-wrapper.blog-wrapper:not([data-iontmax-blog-carousel="ready"]) {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: var(--im-blog-gap) !important;
  visibility: visible !important;
  opacity: 1 !important;
}

body.type-index .homepage-blog-wrapper.blog-wrapper:not([data-iontmax-blog-carousel="ready"]) > .homepage-group-title,
body.in-index .homepage-blog-wrapper.blog-wrapper:not([data-iontmax-blog-carousel="ready"]) > .homepage-group-title,
body.template-index .homepage-blog-wrapper.blog-wrapper:not([data-iontmax-blog-carousel="ready"]) > .homepage-group-title,
body.homepage .homepage-blog-wrapper.blog-wrapper:not([data-iontmax-blog-carousel="ready"]) > .homepage-group-title,
body.home .homepage-blog-wrapper.blog-wrapper:not([data-iontmax-blog-carousel="ready"]) > .homepage-group-title {
  grid-column: 1 / -1 !important;
}

/* Card reset — same geometry source of truth as Hlavní banner carousel. */
body.type-index .homepage-blog-wrapper.blog-wrapper .news-item,
body.in-index .homepage-blog-wrapper.blog-wrapper .news-item,
body.template-index .homepage-blog-wrapper.blog-wrapper .news-item,
body.homepage .homepage-blog-wrapper.blog-wrapper .news-item,
body.home .homepage-blog-wrapper.blog-wrapper .news-item {
  position: relative !important;
  display: block !important;
  box-sizing: border-box !important;
  min-width: 0 !important;
  width: auto !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  float: none !important;
  clear: none !important;

  border: 0 !important;
  border-radius: var(--im-blog-radius) !important;
  background: #f2f2f0 !important;
  box-shadow: none !important;
  overflow: hidden !important;
  isolation: isolate !important;

  /* Theme defaults: DARK is implicit when filename has no theme suffix. */
  --im-blog-gradient: linear-gradient(
    180deg,
    rgba(0,0,0,0) 40%,
    rgba(0,0,0,.10) 56%,
    rgba(0,0,0,.48) 76%,
    rgba(8,8,10,.92) 100%
  );
  --im-blog-title-color: #ffffff;
  --im-blog-title-shadow: 0 1px 10px rgba(0,0,0,.24);
}

/*
 * Per-article visual themes.
 * Filename suffix before extension:
 *   --dark  = default / black gradient + white title
 *   --white = milky white gradient + dark title
 *   --soft  = translucent graphite gradient + white title
 *
 * :has() gives the correct look immediately from the native Shoptet image URL;
 * JS mirrors the same state with classes after initialization.
 */
body.type-index .homepage-blog-wrapper.blog-wrapper .news-item.im-blog-theme--dark,
body.in-index .homepage-blog-wrapper.blog-wrapper .news-item.im-blog-theme--dark,
body.template-index .homepage-blog-wrapper.blog-wrapper .news-item.im-blog-theme--dark,
body.homepage .homepage-blog-wrapper.blog-wrapper .news-item.im-blog-theme--dark,
body.home .homepage-blog-wrapper.blog-wrapper .news-item.im-blog-theme--dark,
body.type-index .homepage-blog-wrapper.blog-wrapper .news-item:has(.image img[src*="--dark."]),
body.in-index .homepage-blog-wrapper.blog-wrapper .news-item:has(.image img[src*="--dark."]),
body.template-index .homepage-blog-wrapper.blog-wrapper .news-item:has(.image img[src*="--dark."]),
body.homepage .homepage-blog-wrapper.blog-wrapper .news-item:has(.image img[src*="--dark."]),
body.home .homepage-blog-wrapper.blog-wrapper .news-item:has(.image img[src*="--dark."]) {
  --im-blog-gradient: linear-gradient(
    180deg,
    rgba(0,0,0,0) 40%,
    rgba(0,0,0,.10) 56%,
    rgba(0,0,0,.48) 76%,
    rgba(8,8,10,.92) 100%
  );
  --im-blog-title-color: #ffffff;
  --im-blog-title-shadow: 0 1px 10px rgba(0,0,0,.24);
}

body.type-index .homepage-blog-wrapper.blog-wrapper .news-item.im-blog-theme--white,
body.in-index .homepage-blog-wrapper.blog-wrapper .news-item.im-blog-theme--white,
body.template-index .homepage-blog-wrapper.blog-wrapper .news-item.im-blog-theme--white,
body.homepage .homepage-blog-wrapper.blog-wrapper .news-item.im-blog-theme--white,
body.home .homepage-blog-wrapper.blog-wrapper .news-item.im-blog-theme--white,
body.type-index .homepage-blog-wrapper.blog-wrapper .news-item:has(.image img[src*="--white."]),
body.in-index .homepage-blog-wrapper.blog-wrapper .news-item:has(.image img[src*="--white."]),
body.template-index .homepage-blog-wrapper.blog-wrapper .news-item:has(.image img[src*="--white."]),
body.homepage .homepage-blog-wrapper.blog-wrapper .news-item:has(.image img[src*="--white."]),
body.home .homepage-blog-wrapper.blog-wrapper .news-item:has(.image img[src*="--white."]) {
  --im-blog-gradient: linear-gradient(
    180deg,
    rgba(255,255,255,0) 38%,
    rgba(255,255,255,.08) 54%,
    rgba(248,248,246,.58) 76%,
    rgba(248,248,246,.96) 100%
  );
  --im-blog-title-color: #151515;
  --im-blog-title-shadow: none;
}

body.type-index .homepage-blog-wrapper.blog-wrapper .news-item.im-blog-theme--soft,
body.in-index .homepage-blog-wrapper.blog-wrapper .news-item.im-blog-theme--soft,
body.template-index .homepage-blog-wrapper.blog-wrapper .news-item.im-blog-theme--soft,
body.homepage .homepage-blog-wrapper.blog-wrapper .news-item.im-blog-theme--soft,
body.home .homepage-blog-wrapper.blog-wrapper .news-item.im-blog-theme--soft,
body.type-index .homepage-blog-wrapper.blog-wrapper .news-item:has(.image img[src*="--soft."]),
body.in-index .homepage-blog-wrapper.blog-wrapper .news-item:has(.image img[src*="--soft."]),
body.template-index .homepage-blog-wrapper.blog-wrapper .news-item:has(.image img[src*="--soft."]),
body.homepage .homepage-blog-wrapper.blog-wrapper .news-item:has(.image img[src*="--soft."]),
body.home .homepage-blog-wrapper.blog-wrapper .news-item:has(.image img[src*="--soft."]) {
  --im-blog-gradient: linear-gradient(
    180deg,
    rgba(20,20,22,0) 40%,
    rgba(24,24,27,.06) 55%,
    rgba(28,28,31,.28) 76%,
    rgba(28,28,31,.68) 100%
  );
  --im-blog-title-color: #ffffff;
  --im-blog-title-shadow: 0 1px 9px rgba(0,0,0,.20);
}

/* IMPORTANT: this selector intentionally has the same/high specificity as the
   reset above. It prevents Shoptet / old module rules such as flex:none from
   collapsing the cards after JS turns the track into flex. */
body.type-index .homepage-blog-wrapper.blog-wrapper.iontmax-blog-carousel .iontmax-blog-carousel__track > .news-item,
body.in-index .homepage-blog-wrapper.blog-wrapper.iontmax-blog-carousel .iontmax-blog-carousel__track > .news-item,
body.template-index .homepage-blog-wrapper.blog-wrapper.iontmax-blog-carousel .iontmax-blog-carousel__track > .news-item,
body.homepage .homepage-blog-wrapper.blog-wrapper.iontmax-blog-carousel .iontmax-blog-carousel__track > .news-item,
body.home .homepage-blog-wrapper.blog-wrapper.iontmax-blog-carousel .iontmax-blog-carousel__track > .news-item {
  flex: 0 0 calc(
    (100% - ((var(--im-blog-cards) - 1) * var(--im-blog-gap))) /
      var(--im-blog-cards)
  ) !important;
  flex-grow: 0 !important;
  flex-shrink: 0 !important;
  width: auto !important;
  max-width: none !important;
  min-width: 0 !important;
  margin: 0 !important;
  aspect-ratio: 412.93 / 619.4 !important;
  scroll-snap-align: start !important;
}

body.type-index .homepage-blog-wrapper.blog-wrapper .news-item > a,
body.in-index .homepage-blog-wrapper.blog-wrapper .news-item > a,
body.template-index .homepage-blog-wrapper.blog-wrapper .news-item > a,
body.homepage .homepage-blog-wrapper.blog-wrapper .news-item > a,
body.home .homepage-blog-wrapper.blog-wrapper .news-item > a {
  position: relative !important;
  z-index: 0 !important;
  display: block !important;
  box-sizing: border-box !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: inherit !important;
  background: #f2f2f0 !important;
  color: #fff !important;
  text-decoration: none !important;
  overflow: hidden !important;
  -webkit-user-drag: none !important;
  touch-action: pan-x pan-y !important;
}

/* Visible pre-JS card ratio. */
body.type-index .homepage-blog-wrapper.blog-wrapper:not([data-iontmax-blog-carousel="ready"]) > .news-item > a,
body.in-index .homepage-blog-wrapper.blog-wrapper:not([data-iontmax-blog-carousel="ready"]) > .news-item > a,
body.template-index .homepage-blog-wrapper.blog-wrapper:not([data-iontmax-blog-carousel="ready"]) > .news-item > a,
body.homepage .homepage-blog-wrapper.blog-wrapper:not([data-iontmax-blog-carousel="ready"]) > .news-item > a,
body.home .homepage-blog-wrapper.blog-wrapper:not([data-iontmax-blog-carousel="ready"]) > .news-item > a {
  height: auto !important;
  min-height: 0 !important;
  aspect-ratio: 412.93 / 619.4 !important;
}

body.type-index .homepage-blog-wrapper.blog-wrapper .news-item > a::after,
body.in-index .homepage-blog-wrapper.blog-wrapper .news-item > a::after,
body.template-index .homepage-blog-wrapper.blog-wrapper .news-item > a::after,
body.homepage .homepage-blog-wrapper.blog-wrapper .news-item > a::after,
body.home .homepage-blog-wrapper.blog-wrapper .news-item > a::after {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  z-index: 2 !important;
  display: block !important;
  background: var(--im-blog-gradient) !important;
  pointer-events: none !important;
}

body.type-index .homepage-blog-wrapper.blog-wrapper .news-item .image,
body.in-index .homepage-blog-wrapper.blog-wrapper .news-item .image,
body.template-index .homepage-blog-wrapper.blog-wrapper .news-item .image,
body.homepage .homepage-blog-wrapper.blog-wrapper .news-item .image,
body.home .homepage-blog-wrapper.blog-wrapper .news-item .image {
  position: absolute !important;
  inset: 0 !important;
  z-index: 1 !important;
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: inherit !important;
  overflow: hidden !important;
}

body.type-index .homepage-blog-wrapper.blog-wrapper .news-item .image img,
body.in-index .homepage-blog-wrapper.blog-wrapper .news-item .image img,
body.template-index .homepage-blog-wrapper.blog-wrapper .news-item .image img,
body.homepage .homepage-blog-wrapper.blog-wrapper .news-item .image img,
body.home .homepage-blog-wrapper.blog-wrapper .news-item .image img {
  position: absolute !important;
  inset: 0 !important;
  z-index: 0 !important;
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  object-fit: cover !important;
  object-position: center !important;
  border: 0 !important;
  border-radius: inherit !important;
  pointer-events: none !important;
  -webkit-user-drag: none !important;
  transform: none !important;
}

/* Article copy — positioned like the main carousel caption. */
body.type-index .homepage-blog-wrapper.blog-wrapper .news-item .text,
body.in-index .homepage-blog-wrapper.blog-wrapper .news-item .text,
body.template-index .homepage-blog-wrapper.blog-wrapper .news-item .text,
body.homepage .homepage-blog-wrapper.blog-wrapper .news-item .text,
body.home .homepage-blog-wrapper.blog-wrapper .news-item .text {
  position: absolute !important;
  top: auto !important;
  right: var(--im-copy-x) !important;
  bottom: var(--im-copy-y) !important;
  left: var(--im-copy-x) !important;
  z-index: 3 !important;

  display: block !important;
  box-sizing: border-box !important;
  width: calc(100% - (var(--im-copy-x) * 2)) !important;
  max-width: calc(100% - (var(--im-copy-x) * 2)) !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;

  background: transparent !important;
  color: #fff !important;
  text-align: left !important;
  pointer-events: none !important;
}

body.type-index .homepage-blog-wrapper.blog-wrapper .news-item .title,
body.in-index .homepage-blog-wrapper.blog-wrapper .news-item .title,
body.template-index .homepage-blog-wrapper.blog-wrapper .news-item .title,
body.homepage .homepage-blog-wrapper.blog-wrapper .news-item .title,
body.home .homepage-blog-wrapper.blog-wrapper .news-item .title {
  display: -webkit-box !important;
  max-width: 88% !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;

  color: var(--im-blog-title-color) !important;
  font-size: var(--im-title) !important;
  font-weight: 600 !important;
  line-height: 1.14 !important;
  letter-spacing: -0.015em !important;
  text-align: left !important;
  text-shadow: var(--im-blog-title-shadow) !important;

  -webkit-line-clamp: 3 !important;
  -webkit-box-orient: vertical !important;
}

body.type-index .homepage-blog-wrapper.blog-wrapper .news-item .description,
body.in-index .homepage-blog-wrapper.blog-wrapper .news-item .description,
body.template-index .homepage-blog-wrapper.blog-wrapper .news-item .description,
body.homepage .homepage-blog-wrapper.blog-wrapper .news-item .description,
body.home .homepage-blog-wrapper.blog-wrapper .news-item .description,
body.type-index .homepage-blog-wrapper.blog-wrapper .news-item .read-article,
body.in-index .homepage-blog-wrapper.blog-wrapper .news-item .read-article,
body.template-index .homepage-blog-wrapper.blog-wrapper .news-item .read-article,
body.homepage .homepage-blog-wrapper.blog-wrapper .news-item .read-article,
body.home .homepage-blog-wrapper.blog-wrapper .news-item .read-article {
  display: none !important;
}

/* Runtime shell */
.iontmax-blog-carousel__viewport {
  position: relative !important;
  display: block !important;
  box-sizing: border-box !important;
  width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: visible !important;
}

.iontmax-blog-carousel__track {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: stretch !important;

  box-sizing: border-box !important;
  gap: var(--im-blog-gap) !important;

  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 0 4px !important;

  overflow-x: auto !important;
  overflow-y: hidden !important;

  scroll-behavior: smooth !important;
  scroll-snap-type: x mandatory !important;
  -webkit-overflow-scrolling: touch !important;
  overscroll-behavior-x: contain !important;
  scrollbar-width: none !important;

  cursor: grab !important;
  user-select: none !important;
  touch-action: pan-x pan-y !important;
}

.iontmax-blog-carousel__track::-webkit-scrollbar {
  display: none !important;
}

.iontmax-blog-carousel__track.is-pointer-down {
  cursor: grabbing !important;
  scroll-behavior: auto !important;
}

.iontmax-blog-carousel__track.is-dragging,
.iontmax-blog-carousel__track.is-dragging * {
  cursor: grabbing !important;
  user-select: none !important;
}

.iontmax-blog-carousel__track.is-dragging a[href] {
  pointer-events: none !important;
}

/* Arrows — exact shell dimensions/position of main carousel. */
.iontmax-blog-carousel__arrow {
  position: absolute !important;
  top: 50% !important;
  z-index: 4 !important;

  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;

  width: var(--im-blog-arrow-size) !important;
  height: var(--im-blog-arrow-size) !important;
  margin: 0 !important;
  padding: 0 !important;

  border: 1px solid rgba(255,255,255,.8) !important;
  border-radius: 999px !important;
  background: rgba(255,255,255,.92) !important;
  box-shadow: 0 16px 32px rgba(0,0,0,.2) !important;
  color: #0a0a0a !important;

  cursor: pointer !important;
  transform: translateY(-50%) !important;
  transition:
    opacity .22s,
    visibility .22s,
    transform .22s,
    background .18s,
    color .18s,
    border-color .18s !important;
}

.iontmax-blog-carousel__arrow:hover:not(:disabled) {
  border-color: #0a0a0a !important;
  background: #0a0a0a !important;
  color: #fff !important;
  transform: translateY(-50%) scale(1.04) !important;
}

.iontmax-blog-carousel__arrow:focus-visible {
  outline: 2px solid #111 !important;
  outline-offset: 3px !important;
}

.iontmax-blog-carousel__arrow:disabled {
  visibility: hidden !important;
  opacity: 0 !important;
  cursor: default !important;
  pointer-events: none !important;
}

.iontmax-blog-carousel__arrow--prev:disabled {
  transform: translate(-12px, -50%) scale(.92) !important;
}

.iontmax-blog-carousel__arrow--next:disabled {
  transform: translate(12px, -50%) scale(.92) !important;
}

.iontmax-blog-carousel__arrow:not(:disabled) {
  visibility: visible !important;
  opacity: 1 !important;
}

.iontmax-blog-carousel__arrow svg {
  display: block !important;
  width: 22px !important;
  height: 22px !important;
}

.iontmax-blog-carousel__arrow--prev {
  left: -26px !important;
}

.iontmax-blog-carousel__arrow--next {
  right: -26px !important;
}

/* Progress — exact main-carousel dimensions. */
.iontmax-blog-carousel__progress {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: var(--im-blog-progress-gap) !important;

  width: 100% !important;
  margin: 10px 0 0 !important;
  padding: 0 !important;
}

.iontmax-blog-carousel__progress[hidden],
.iontmax-blog-carousel--no-overflow .iontmax-blog-carousel__progress {
  display: none !important;
}

.iontmax-blog-carousel__progress-item {
  display: block !important;
  flex: 0 0 auto !important;
  align-self: center !important;
  box-sizing: border-box !important;

  width: var(--im-blog-progress-dot) !important;
  height: var(--im-blog-progress-dot) !important;
  min-width: var(--im-blog-progress-dot) !important;
  min-height: var(--im-blog-progress-dot) !important;

  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 999px !important;

  background: #dedede !important;
  box-shadow: none !important;
  cursor: pointer !important;
  opacity: .9 !important;

  appearance: none !important;
  -webkit-appearance: none !important;
  line-height: 0 !important;
  font-size: 0 !important;
  text-indent: -9999px !important;
  overflow: hidden !important;

  transition: width .24s ease, background .24s ease, opacity .24s ease !important;
}

.iontmax-blog-carousel__progress-item.is-active {
  width: var(--im-blog-progress-line) !important;
  min-width: var(--im-blog-progress-line) !important;
  height: var(--im-blog-progress-dot) !important;
  min-height: var(--im-blog-progress-dot) !important;
  background: #202020 !important;
  opacity: 1 !important;
}

.iontmax-blog-carousel__progress-item:focus-visible {
  outline: 2px solid #151515 !important;
  outline-offset: 4px !important;
}

@media (hover: hover) and (pointer: fine) {
  body.type-index .homepage-blog-wrapper.blog-wrapper .news-item > a:hover .image img,
  body.in-index .homepage-blog-wrapper.blog-wrapper .news-item > a:hover .image img,
  body.template-index .homepage-blog-wrapper.blog-wrapper .news-item > a:hover .image img,
  body.homepage .homepage-blog-wrapper.blog-wrapper .news-item > a:hover .image img,
  body.home .homepage-blog-wrapper.blog-wrapper .news-item > a:hover .image img {
    transform: none !important;
  }
}

@media (min-width: 768px) and (max-width: 1199px) {
  body.type-index .homepage-blog-wrapper.blog-wrapper,
  body.in-index .homepage-blog-wrapper.blog-wrapper,
  body.template-index .homepage-blog-wrapper.blog-wrapper,
  body.homepage .homepage-blog-wrapper.blog-wrapper,
  body.home .homepage-blog-wrapper.blog-wrapper {
    --im-blog-gap: 10px;
    --im-blog-cards: 3;
    --im-blog-radius: 8px;
  }

  body.type-index .homepage-blog-wrapper.blog-wrapper:not([data-iontmax-blog-carousel="ready"]),
  body.in-index .homepage-blog-wrapper.blog-wrapper:not([data-iontmax-blog-carousel="ready"]),
  body.template-index .homepage-blog-wrapper.blog-wrapper:not([data-iontmax-blog-carousel="ready"]),
  body.homepage .homepage-blog-wrapper.blog-wrapper:not([data-iontmax-blog-carousel="ready"]),
  body.home .homepage-blog-wrapper.blog-wrapper:not([data-iontmax-blog-carousel="ready"]) {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 767px) {
  body.type-index .homepage-blog-wrapper.blog-wrapper,
  body.in-index .homepage-blog-wrapper.blog-wrapper,
  body.template-index .homepage-blog-wrapper.blog-wrapper,
  body.homepage .homepage-blog-wrapper.blog-wrapper,
  body.home .homepage-blog-wrapper.blog-wrapper {
    --im-blog-gap: 12px;
    --im-blog-cards: 1.15;
    --im-blog-radius: 8px;
    --im-blog-progress-dot: 6px;
    --im-blog-progress-line: 28px;

    --im-copy-x: clamp(20px, 4.4vw, 38px);
    --im-copy-y: clamp(20px, 4.4vw, 38px);
    --im-title: clamp(22px, 5.23vw, 32px);

    margin-top: 24px !important;
    margin-bottom: 38px !important;
  }

  body.type-index .homepage-blog-wrapper.blog-wrapper > .homepage-group-title,
  body.in-index .homepage-blog-wrapper.blog-wrapper > .homepage-group-title,
  body.template-index .homepage-blog-wrapper.blog-wrapper > .homepage-group-title,
  body.homepage .homepage-blog-wrapper.blog-wrapper > .homepage-group-title,
  body.home .homepage-blog-wrapper.blog-wrapper > .homepage-group-title {
    margin-bottom: 16px !important;
  }

  /* Keep fallback visible; JS normally replaces it immediately. */
  body.type-index .homepage-blog-wrapper.blog-wrapper:not([data-iontmax-blog-carousel="ready"]),
  body.in-index .homepage-blog-wrapper.blog-wrapper:not([data-iontmax-blog-carousel="ready"]),
  body.template-index .homepage-blog-wrapper.blog-wrapper:not([data-iontmax-blog-carousel="ready"]),
  body.homepage .homepage-blog-wrapper.blog-wrapper:not([data-iontmax-blog-carousel="ready"]),
  body.home .homepage-blog-wrapper.blog-wrapper:not([data-iontmax-blog-carousel="ready"]) {
    grid-template-columns: 1fr !important;
  }

  .iontmax-blog-carousel__track {
    gap: var(--im-blog-gap) !important;
    padding: 0 !important;
    scroll-behavior: auto !important;
    cursor: default !important;
    touch-action: pan-x pan-y !important;
  }

  body.type-index .homepage-blog-wrapper.blog-wrapper.iontmax-blog-carousel .iontmax-blog-carousel__track > .news-item,
  body.in-index .homepage-blog-wrapper.blog-wrapper.iontmax-blog-carousel .iontmax-blog-carousel__track > .news-item,
  body.template-index .homepage-blog-wrapper.blog-wrapper.iontmax-blog-carousel .iontmax-blog-carousel__track > .news-item,
  body.homepage .homepage-blog-wrapper.blog-wrapper.iontmax-blog-carousel .iontmax-blog-carousel__track > .news-item,
  body.home .homepage-blog-wrapper.blog-wrapper.iontmax-blog-carousel .iontmax-blog-carousel__track > .news-item {
    flex: 0 0 calc(
      (100% - ((var(--im-blog-cards) - 1) * var(--im-blog-gap))) /
        var(--im-blog-cards)
    ) !important;
    aspect-ratio: 412.93 / 619.4 !important;
  }

  .iontmax-blog-carousel__arrow {
    display: none !important;
  }

  .iontmax-blog-carousel__progress {
    margin-top: 10px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .iontmax-blog-carousel__track {
    scroll-behavior: auto !important;
  }
}

/* ===== 2. CATEGORY LISTING ===== */
/*
 * IONTMAX Theme | Blog - Vypis rubrik
 * Applies only to category/article listings where #newsWrapper is a direct
 * child of main#content > .content-inner. The blog landing page uses
 * .im-blog-layout and is intentionally excluded.
 */

main#content.content.wide:has(> .content-inner > #newsWrapper) {
  --im-blog-category-ink: #14243b;
  --im-blog-category-muted: #66758a;
  --im-blog-category-border: #e6ebf1;
  --im-blog-category-radius: 12px;
  --im-blog-category-gap: clamp(16px, 2vw, 28px);
  padding-bottom: clamp(56px, 7vw, 112px);
}

main#content.content.wide:has(> .content-inner > #newsWrapper) > .content-inner {
  width: 100%;
  min-width: 0;
}

main#content.content.wide:has(> .content-inner > #newsWrapper) > .content-inner > .sectionDescription {
  margin: 0 0 clamp(24px, 3vw, 42px);
}

main#content.content.wide:has(> .content-inner > #newsWrapper) > .content-inner > .sectionDescription h1 {
  margin: 0;
  color: var(--im-blog-category-ink);
  font-size: clamp(28px, 3.2vw, 44px);
  font-weight: 750;
  line-height: 1.15;
  letter-spacing: -0.025em;
}

main#content.content.wide > .content-inner > #newsWrapper {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--im-blog-category-gap, 24px);
  min-width: 0;
  margin: 0;
  padding: 0;
  align-items: stretch;
}

main#content.content.wide > .content-inner > #newsWrapper > .news-item {
  display: flex;
  flex-direction: column;
  min-width: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--im-blog-category-border, #e6ebf1);
  border-radius: var(--im-blog-category-radius, 12px);
  background: #fff;
  box-shadow: 0 2px 10px rgba(14, 32, 54, .035);
  transition: box-shadow .2s ease, transform .2s ease;
}

main#content.content.wide > .content-inner > #newsWrapper > .news-item > .image {
  display: block;
  flex: none;
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  text-align: left;
  background: #f2f5f8;
}

main#content.content.wide > .content-inner > #newsWrapper > .news-item > .image > a {
  display: block;
  width: 100%;
  height: 100%;
}

main#content.content.wide > .content-inner > #newsWrapper > .news-item > .image img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: cover;
  object-position: center;
  transition: transform .3s ease;
}

main#content.content.wide > .content-inner > #newsWrapper > .news-item > .text {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  min-width: 0;
  padding: clamp(18px, 2vw, 26px);
}

main#content.content.wide > .content-inner > #newsWrapper > .news-item > .text > .title {
  display: block;
  width: 100%;
  min-width: 0;
  margin: 0 0 12px;
  color: var(--im-blog-category-ink, #14243b);
  font-size: clamp(19px, 1.6vw, 23px);
  line-height: 1.34;
  font-weight: 700;
  letter-spacing: -0.015em;
  text-decoration: none;
  overflow-wrap: anywhere;
}

main#content.content.wide > .content-inner > #newsWrapper > .news-item > .text > time {
  display: block;
  margin: 0 0 14px;
  color: var(--im-blog-category-muted, #66758a);
  font-size: 12px;
  line-height: 1.5;
  font-weight: 500;
}

main#content.content.wide > .content-inner > #newsWrapper > .news-item > .text > .description {
  width: 100%;
  min-width: 0;
  margin: 0;
  color: var(--im-blog-category-muted, #66758a);
  font-size: 14px;
  line-height: 1.7;
  overflow: hidden;
}

main#content.content.wide > .content-inner > #newsWrapper > .news-item > .text > .description p {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  line-clamp: 4;
  overflow: hidden;
  margin: 0;
  line-height: inherit;
  white-space: normal;
  overflow-wrap: anywhere;
}

main#content.content.wide:has(> .content-inner > #newsWrapper) > .content-inner > .listingControls {
  margin: clamp(24px, 3vw, 40px) 0 0;
  padding: 16px 0 0;
  border-top: 1px solid var(--im-blog-category-border, #e6ebf1);
  color: var(--im-blog-category-muted, #66758a);
  font-size: 13px;
}

main#content.content.wide:has(> .content-inner > #newsWrapper) > .content-inner > .listingControls .itemsTotal {
  color: inherit;
  font-size: inherit;
}

main#content.content.wide > .content-inner > #newsWrapper > .news-item > .text > .title:focus-visible,
main#content.content.wide > .content-inner > #newsWrapper > .news-item > .image > a:focus-visible {
  outline: 3px solid #2176c1;
  outline-offset: -3px;
}

@media (hover: hover) and (pointer: fine) {
  main#content.content.wide > .content-inner > #newsWrapper > .news-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(14, 32, 54, .11);
  }
  main#content.content.wide > .content-inner > #newsWrapper > .news-item:hover > .image img {
    transform: scale(1.035);
  }
  main#content.content.wide > .content-inner > #newsWrapper > .news-item > .text > .title:hover {
    color: #176cae;
  }
}

@media (max-width: 1099px) {
  main#content.content.wide > .content-inner > #newsWrapper {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 639px) {
  main#content.content.wide:has(> .content-inner > #newsWrapper) {
    padding-bottom: 64px;
  }
  main#content.content.wide > .content-inner > #newsWrapper {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }
  main#content.content.wide > .content-inner > #newsWrapper > .news-item > .text {
    padding: 18px;
  }
  main#content.content.wide > .content-inner > #newsWrapper > .news-item > .text > .title {
    font-size: 20px;
  }
  main#content.content.wide > .content-inner > #newsWrapper > .news-item > .image {
    aspect-ratio: 16 / 10;
  }
}

@media (prefers-reduced-motion: reduce) {
  main#content.content.wide > .content-inner > #newsWrapper > .news-item,
  main#content.content.wide > .content-inner > #newsWrapper > .news-item > .image img {
    transition: none;
  }
}

/* ===== 3. BLOG HOME + DETAIL ===== */

/* ============================================================
   BLOG MAIN PAGE — /blog/; markup supplied by Shoptet/site.
   These rules never apply to homepage's .homepage-blog-wrapper.
   ============================================================ */
main#content:has(.im-blog-layout) {
  --im-blog-ink: #14243b;
  --im-blog-muted: #66758a;
  --im-blog-line: #e6ebf1;
  --im-blog-accent: #176cae;
  padding-bottom: clamp(64px, 7vw, 112px);
}
main#content:has(.im-blog-layout) .content-inner {min-width: 0;}
main#content:has(.im-blog-layout) .sectionDescription {margin-bottom: clamp(24px, 3vw, 42px);}
main#content:has(.im-blog-layout) .sectionDescription h1 {
  margin-bottom: 12px; color: var(--im-blog-ink); font-size: clamp(30px, 3.2vw, 46px); line-height: 1.15;
}
main#content:has(.im-blog-layout) .im-blog-intro {max-width: 68ch; margin: 0; color: var(--im-blog-muted); line-height: 1.7;}
main#content .im-blog-layout {display: grid; grid-template-columns: minmax(215px, 260px) minmax(0, 1fr); align-items: start; gap: clamp(24px, 3vw, 48px); min-width: 0;}
main#content .im-blog-sidebar, main#content .im-blog-content {min-width: 0;}
main#content .im-blog-sidebar-inner {padding: clamp(18px, 2vw, 26px); border: 1px solid var(--im-blog-line); border-radius: 12px; background: #fff;}
main#content .im-blog-sidebar-title {font-size: 20px; font-weight: 750; line-height: 1.25; color: var(--im-blog-ink);}
main#content .im-blog-sidebar-description {margin: 8px 0 20px; font-size: 14px; line-height: 1.6; color: var(--im-blog-muted);}
main#content .im-blog-all-link {display: flex; align-items: center; gap: 12px; padding: 12px; margin-bottom: 10px; border-radius: 8px; font-weight: 650; color: var(--im-blog-ink); text-decoration: none;}
main#content .im-blog-all-link:hover {background: #f3f3f3; color: #111;}
/* Vybrana polozka "Vsechny clanky" - vyssi specificita a ochrana pred Shoptet CSS. */
main#content .im-blog-sidebar .im-blog-all-link.is-active,
main#content .im-blog-sidebar .im-blog-all-link[aria-current="page"],
main#content .im-blog-sidebar .im-blog-all-link.is-active:hover,
main#content .im-blog-sidebar .im-blog-all-link[aria-current="page"]:hover,
main#content .im-blog-sidebar .im-blog-all-link.is-active:focus-visible,
main#content .im-blog-sidebar .im-blog-all-link[aria-current="page"]:focus-visible {
  background: #000 !important;
  background-color: #000 !important;
  color: #fff !important;
  border-color: #000 !important;
  text-decoration: none !important;
}
main#content .im-blog-sidebar .im-blog-all-link.is-active *,
main#content .im-blog-sidebar .im-blog-all-link[aria-current="page"] * {
  color: #fff !important;
}
main#content .im-blog-all-link-icon {font-size: 22px; line-height: 1;}
main#content .im-blog-sidebar .subcategories {display: flex; flex-direction: column; gap: 6px; padding: 0; margin: 0; list-style: none;}
main#content .im-blog-sidebar .subcategories > li {float: none; width: 100%; max-width: none; flex: none; margin: 0; padding: 0; list-style: none;}
main#content .im-blog-sidebar .subcategories a {display: flex; align-items: center; gap: 12px; min-width: 0; padding: 10px 12px; border-radius: 8px; color: var(--im-blog-ink); text-decoration: none; transition: background .2s ease;}
main#content .im-blog-sidebar .subcategories a:hover, main#content .im-blog-sidebar .subcategories a[aria-current=page] {background: #edf4fa;}
main#content .im-blog-sidebar .subcategories .image {display: block; width: 52px; height: 46px; flex: 0 0 52px; overflow: hidden; border-radius: 6px; background: #f2f5f8;}
main#content .im-blog-sidebar .subcategories .image img {display: block; width: 100%; height: 100%; object-fit: cover;}
main#content .im-blog-sidebar .subcategories .text {min-width: 0; font-size: 14px; font-weight: 650; line-height: 1.35;}
main#content .im-blog-content-header {display: flex; justify-content: space-between; align-items: baseline; gap: 14px; margin-bottom: 22px;}
main#content .im-blog-content-heading {margin: 0; font-size: clamp(23px, 2.2vw, 30px); line-height: 1.25; font-weight: 750; color: var(--im-blog-ink);}
main#content .im-blog-content-count {flex-shrink: 0; font-size: 13px; color: var(--im-blog-muted);}
main#content .im-blog-content > #newsWrapper.news-wrapper {display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: clamp(18px,2vw,28px); align-items: stretch; margin: 0; padding: 0;}
main#content .im-blog-content > #newsWrapper > .news-item {display: flex; flex-direction: column; width: 100%; height: 100%; min-width: 0; padding: 0; margin: 0; overflow: hidden; border: 1px solid var(--im-blog-line); border-radius: 12px; background: white; box-shadow: 0 2px 10px rgba(14,32,54,.035); transition: transform .2s ease, box-shadow .2s ease;}
main#content .im-blog-content > #newsWrapper > .news-item > .image {width: 100%; flex: none; margin: 0; aspect-ratio: 16/10; overflow: hidden; background: #f2f5f8;}
main#content .im-blog-content > #newsWrapper > .news-item > .image a {display: block; width: 100%; height: 100%;}
main#content .im-blog-content > #newsWrapper > .news-item > .image img {display: block; width: 100%; height: 100%; max-width: none; max-height: none; object-fit: cover; transition: transform .25s ease;}
main#content .im-blog-content > #newsWrapper > .news-item > .text {display: flex; flex-direction: column; flex: 1 1 auto; width: 100%; min-width: 0; padding: clamp(17px,2vw,26px);}
main#content .im-blog-article-category {display: inline-block; align-self: flex-start; margin-bottom: 12px; font-size: 12px; line-height: 1.35; letter-spacing: .02em; font-weight: 700; color: var(--im-blog-accent);}
main#content .im-blog-content .news-item .title {display: block; margin: 0 0 12px; font-size: clamp(19px,1.6vw,23px); font-weight: 750; line-height: 1.32; letter-spacing: -.015em; color: var(--im-blog-ink); text-decoration: none; overflow-wrap: anywhere;}
main#content .im-blog-content .news-item time {display: block; margin: 0 0 14px; font-size: 12px; line-height: 1.5; font-weight: 500; color: var(--im-blog-muted);}
main#content .im-blog-content .news-item .description {min-width: 0; margin: 0; font-size: 14px; line-height: 1.7; color: var(--im-blog-muted); overflow: hidden;}
main#content .im-blog-content .news-item .description p {display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; line-clamp: 4; margin: 0; overflow: hidden; overflow-wrap: anywhere;}
main#content .im-blog-read-more {display: inline-flex; align-self: flex-start; margin-top: auto; padding-top: 20px; font-weight: 700; font-size: 13px; color: var(--im-blog-accent); text-decoration: none;}
main#content .im-blog-read-more:hover,main#content .im-blog-content .news-item .title:hover {color: #0b4e83; text-decoration: underline;}
main#content .im-blog-content > .listingControls {margin: 32px 0 0; padding-top: 16px; border-top: 1px solid var(--im-blog-line); font-size: 13px; color: var(--im-blog-muted);}
@media (hover:hover) and (pointer:fine) {
 main#content .im-blog-content > #newsWrapper > .news-item:hover {transform:translateY(-3px); box-shadow:0 12px 30px rgba(14,32,54,.11);}
 main#content .im-blog-content > #newsWrapper > .news-item:hover .image img {transform:scale(1.035);}
}
@media (max-width: 1100px) {
 main#content .im-blog-layout {grid-template-columns: minmax(190px,220px) minmax(0,1fr); gap:22px;}
}
@media (max-width: 850px) {
 main#content .im-blog-layout {grid-template-columns: minmax(0,1fr); gap:26px;}
 main#content .im-blog-sidebar .subcategories {flex-direction:row; flex-wrap:wrap; gap: 8px;}
 main#content .im-blog-sidebar .subcategories > li {width:auto;}
 main#content .im-blog-sidebar .subcategories a {padding:8px 10px; border:1px solid var(--im-blog-line);}
 main#content .im-blog-sidebar .subcategories .image {width:32px; height:32px; flex-basis:32px;}
 main#content .im-blog-sidebar-description {margin-bottom:12px;}
}
@media (max-width: 620px) {
 main#content .im-blog-content > #newsWrapper.news-wrapper {grid-template-columns:minmax(0,1fr); gap:20px;}
 main#content .im-blog-sidebar-inner {padding:16px;}
 main#content .im-blog-content-header {align-items:flex-start; flex-direction:column; gap:6px;}
}
/* ============================================================
   ARTICLE DETAIL — conservative, typography-first scoped rules.
   ============================================================ */
main#content:has(.news-item-detail) {padding-bottom:clamp(64px,7vw,112px);}
main#content .news-item-detail {min-width:0; color:#24344a;}
main#content .news-item-detail .text {max-width: 900px; margin-bottom:clamp(28px,3vw,46px); font-size:clamp(16px,1.1vw,18px); line-height:1.8; overflow-wrap:break-word;}
main#content .news-item-detail .text p {margin:0 0 1.25em;}
main#content .news-item-detail .text h2, main#content .news-item-detail .text h3, main#content .news-item-detail .text h4 {color:#14243b; line-height:1.25; margin:1.65em 0 .7em; overflow-wrap:anywhere;}
main#content .news-item-detail .text h2 {font-size:clamp(24px,2.3vw,34px);}
main#content .news-item-detail .text h3 {font-size:clamp(20px,1.8vw,27px);}
main#content .news-item-detail .text img {height:auto; max-width:100%; border-radius:8px;}
main#content .news-item-detail .text iframe, main#content .news-item-detail .text video {max-width:100%;}
main#content .news-item-detail .text table {display:block; max-width:100%; overflow-x:auto; -webkit-overflow-scrolling:touch;}
main#content .news-item-detail .text pre {max-width:100%; overflow-x:auto;}
main#content .news-item-detail .text ul, main#content .news-item-detail .text ol {padding-left:1.5em; margin:0 0 1.3em;}
main#content .news-item-detail .text li {margin-bottom:.4em;}
main#content .news-item-detail .next-prev {margin-top:30px;}
@media(max-width:639px) {
 main#content:has(.news-item-detail) {padding-bottom:64px;}
 main#content .news-item-detail .text img[style*="float: left"],
 main#content .news-item-detail .text img[style*="float: right"] {float:none!important; display:block; margin:16px auto;}
}
@media(prefers-reduced-motion:reduce) {
 main#content .im-blog-content > #newsWrapper > .news-item,
 main#content .im-blog-content > #newsWrapper > .news-item > .image img,
 main#content .im-blog-sidebar .subcategories a {transition:none;}
}

/* ============================================================
   6. SEARCH RESULTS - UNIFIED CONTENT TRACK (v11)
   Completely isolated from product cards and the blog archive.
   !important is intentional to override Shoptet default link/list styles.
   ============================================================ */
main#content:has(> .search-results-groups) {
  padding-bottom: clamp(64px, 7vw, 104px);
  background: #fff;
}
/* Match the product-results area below: both occupy the full main content width. */
html body #content-wrapper > .content-wrapper-in > main#content.content.wide > .search-results-groups,
html body #content-wrapper > .content-wrapper-in > main#content.content.wide > #products-found {
  box-sizing: border-box !important;
  display: block !important;
  position: relative !important;
  float: none !important;
  clear: both !important;
  grid-column: 1 / -1 !important;
  flex: 0 0 100% !important;
  width: 90% !important;
  max-width: 90% !important;
  min-width: 0 !important;
  margin-left: 5% !important;
  margin-right: 5% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}
main#content:has(> .search-results-groups) > h2 {
  margin: 0 0 clamp(26px, 3vw, 38px) !important;
  padding: 0 !important;
  background: #fff !important;
  color: #111 !important;
  font-size: clamp(25px, 2.5vw, 36px);
  font-weight: 700;
  line-height: 1.25;
}
main#content:has(> .search-results-groups) > h2 .highlight {
  background: transparent !important;
  color: inherit !important;
}
main#content > .search-results-groups #search-group-articles,
main#content > .search-results-groups #search-group-articles .search-results-group-list {
  display: block !important;
  float: none !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  background: #fff !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}
main#content > .search-results-groups {
  margin-bottom: clamp(38px, 4vw, 56px) !important;
}
/* Shoptet may add inherited gutters to the group and list. Reset only here. */
main#content:has(> .search-results-groups) > h2,
main#content > .search-results-groups #search-group-articles,
main#content > .search-results-groups #search-group-articles .search-results-group-list,
main#content > .search-results-groups #search-group-articles .search-results-group-list > ul {
  box-sizing: border-box !important;
  text-align: left !important;
  text-indent: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  left: auto !important;
  transform: none !important;
}

/* Identical left edge, size and weight for Articles and Products. */
main#content > .search-results-groups #search-group-articles > h4,
main#content > #products-found > h4.search-products-heading {
  box-sizing: border-box !important;
  display: block !important;
  position: static !important;
  float: none !important;
  clear: both !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 0 22px !important;
  padding: 0 !important;
  background: #fff !important;
  color: #111 !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  font-size: clamp(21px, 1.8vw, 26px) !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
  letter-spacing: normal !important;
  text-align: left !important;
  text-indent: 0 !important;
  transform: none !important;
}
main#content > .search-results-groups #search-group-articles > h4::before,
main#content > .search-results-groups #search-group-articles > h4::after {
  content: none !important;
  display: none !important;
}
main#content > .search-results-groups #search-group-articles .search-results-group-list > ul {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  column-gap: 0 !important;
  row-gap: 24px !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
  background: transparent !important;
}
main#content > .search-results-groups #search-group-articles .search-results-group-list > ul > li {
  display: block !important;
  float: none !important;
  width: 100% !important;
  min-width: 0 !important;
  height: auto !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: #fff !important;
  list-style: none !important;
  overflow: visible !important;
}
/* Preserve Shoptet show-more behavior. */
main#content > .search-results-groups #search-group-articles .search-results-group-list > ul > li.no-display {
  display: none !important;
}
main#content > .search-results-groups #search-group-articles .search-results-group-list > ul > li > a[data-im-blog-search-card] {
  display: grid !important;
  grid-template-columns: 104px minmax(0, 1fr) !important;
  grid-template-rows: auto !important;
  align-items: center !important;
  justify-content: stretch !important;
  gap: 18px !important;
  float: none !important;
  width: 100% !important;
  min-width: 0 !important;
  min-height: 104px !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: #fff !important;
  color: #111 !important;
  text-decoration: none !important;
  text-align: left !important;
  line-height: normal !important;
  transform: none !important;
}
main#content > .search-results-groups #search-group-articles .im-blog-search-thumb {
  display: block !important;
  position: relative !important;
  grid-column: 1 !important;
  grid-row: 1 !important;
  float: none !important;
  width: 104px !important;
  height: 104px !important;
  min-width: 0 !important;
  min-height: 0 !important;
  max-width: 104px !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  border: 0 !important;
  border-radius: 4px !important;
  box-shadow: none !important;
  background: #f5f5f5 !important;
}
main#content > .search-results-groups #search-group-articles .im-blog-search-thumb img {
  display: block !important;
  position: static !important;
  float: none !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  object-fit: cover !important;
  object-position: center !important;
}
main#content > .search-results-groups #search-group-articles .im-blog-search-thumb--fallback::before {
  content: '';
  display: block;
  width: 30px;
  height: 30px;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23666666' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'/%3E%3Cpath d='M14 2v6h6M8 13h8M8 17h6'/%3E%3C/svg%3E");
}
main#content > .search-results-groups #search-group-articles .im-blog-search-copy {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  justify-content: center !important;
  grid-column: 2 !important;
  grid-row: 1 !important;
  gap: 8px !important;
  float: none !important;
  width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  color: #111 !important;
  text-align: left !important;
}
main#content > .search-results-groups #search-group-articles .im-blog-search-title {
  display: block !important;
  float: none !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  color: #111 !important;
  background: transparent !important;
  font-size: clamp(15px, 1.1vw, 17px) !important;
  font-weight: 650 !important;
  line-height: 1.45 !important;
  letter-spacing: -.012em !important;
  text-align: left !important;
  text-decoration: none !important;
  white-space: normal !important;
  overflow-wrap: break-word !important;
}
main#content > .search-results-groups #search-group-articles .im-blog-search-meta {
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  color: #696969 !important;
  font-size: 12px !important;
  font-weight: 400 !important;
  line-height: 1.35 !important;
  text-align: left !important;
}
main#content > .search-results-groups #search-group-articles .search-results-group-list > ul > li > a[data-im-blog-search-card]:hover .im-blog-search-title {
  text-decoration: underline !important;
  text-underline-offset: 3px;
}
main#content > .search-results-groups #search-group-articles > .display-results-group {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 42px !important;
  margin: 28px 0 0 !important;
  padding: 10px 18px !important;
  border: 1px solid #111 !important;
  border-radius: 3px !important;
  background: #fff !important;
  color: #111 !important;
  box-shadow: none !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  line-height: 1.4 !important;
  text-decoration: none !important;
}
main#content > .search-results-groups #search-group-articles > .display-results-group:hover {
  background: #111 !important;
  color: #fff !important;
}
main#content > .search-results-groups #search-group-articles a:focus-visible {
  outline: 2px solid #111 !important;
  outline-offset: 3px !important;
}
/* Both section titles are styled together above; no separate product underline. */
@media (max-width: 760px) {
  main#content > .search-results-groups #search-group-articles .search-results-group-list > ul {
    grid-template-columns: minmax(0, 1fr) !important;
    row-gap: 20px !important;
  }
  main#content > .search-results-groups #search-group-articles .search-results-group-list > ul > li > a[data-im-blog-search-card] {
    grid-template-columns: 88px minmax(0, 1fr) !important;
    gap: 14px !important;
    min-height: 88px !important;
  }
  main#content > .search-results-groups #search-group-articles .im-blog-search-thumb {
    width: 88px !important;
    height: 88px !important;
    max-width: 88px !important;
  }
}
@media (max-width: 420px) {
  main#content > .search-results-groups #search-group-articles > h4,
  main#content > #products-found > h4.search-products-heading {
    margin-bottom: 18px !important;
  }
  main#content > .search-results-groups #search-group-articles .search-results-group-list > ul > li > a[data-im-blog-search-card] {
    grid-template-columns: 76px minmax(0, 1fr) !important;
    gap: 12px !important;
    min-height: 76px !important;
  }
  main#content > .search-results-groups #search-group-articles .im-blog-search-thumb {
    width: 76px !important;
    height: 76px !important;
    max-width: 76px !important;
  }
  main#content > .search-results-groups #search-group-articles .im-blog-search-title {
    font-size: 14px !important;
    line-height: 1.4 !important;
  }
  main#content > .search-results-groups #search-group-articles > .display-results-group {
    width: 100% !important;
  }
}
@media (prefers-reduced-motion: reduce) {
  main#content > .search-results-groups #search-group-articles * {
    transition: none !important;
  }
}

/* Native search title is inset on desktop. Both sections follow that same 90% track. */
@media (max-width: 767px) {
  html body #content-wrapper > .content-wrapper-in > main#content.content.wide > .search-results-groups,
  html body #content-wrapper > .content-wrapper-in > main#content.content.wide > #products-found {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
}
