.jp-blog {
  padding: 48px 0 72px;
  display: grid;
  gap: 28px;
}

.jp-blog__hero {
  display: grid;
  gap: 14px;
}

.jp-blog__eyebrow {
  color: var(--jp-accent);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 13px;
}

.jp-blog__hero h1 {
  margin: 0;
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1.02;
}

.jp-blog__hero p {
  margin: 0;
  max-width: 860px;
  color: var(--jp-muted);
  font-family: var(--jp-font-body);
  font-size: 18px;
  line-height: 1.65;
}

.jp-blog-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.jp-blog-filters__item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(25, 30, 38, 0.12);
  background: #fff;
  color: var(--jp-text);
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.jp-blog-filters__item:hover {
  border-color: rgba(255, 103, 0, 0.32);
  color: var(--jp-orange);
  background: #fff8ef;
}

.jp-blog-filters__item.is-active {
  border-color: var(--jp-orange);
  background: var(--jp-orange);
  color: #fff;
}

.jp-blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.jp-blog-card {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 24px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 18px 40px rgba(16, 24, 40, 0.08);
}

.jp-blog-card__link {
  display: grid;
  color: inherit;
  text-decoration: none;
  height: 100%;
}

.jp-blog-card__media {
  aspect-ratio: 1.5 / 1;
  background: linear-gradient(135deg, #fff8ef 0%, #f5f7fb 100%);
  overflow: hidden;
}

.jp-blog-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.jp-blog-card__placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: #98a2b3;
  font-weight: 700;
  letter-spacing: .06em;
}

.jp-blog-card__body {
  display: grid;
  gap: 14px;
  padding: 22px;
}

.jp-blog-card__meta,
.jp-blog-post__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  color: var(--jp-muted);
  font-size: 14px;
}

.jp-blog-card h2,
.jp-blog-post__head h1 {
  margin: 0;
  color: #101828;
}

.jp-blog-card h2 {
  font-size: 24px;
  line-height: 1.2;
}

.jp-blog-card p {
  margin: 0;
  color: var(--jp-muted);
  font-family: var(--jp-font-body);
  line-height: 1.65;
}

.jp-blog-post {
  padding: 48px 0 80px;
  display: grid;
  gap: 28px;
}

.jp-blog-post__head {
  display: grid;
  gap: 16px;
  max-width: 920px;
  width: 100%;
  margin: 0 auto;
}

.jp-blog-post__head h1 {
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.08;
}

.jp-blog-post__lead {
  margin: 0;
  max-width: 860px;
  color: var(--jp-muted);
  font-family: var(--jp-font-body);
  font-size: 20px;
  line-height: 1.7;
}

.jp-blog-post__cover {
  overflow: hidden;
  border-radius: 28px;
  background: #f5f7fb;
  width: 100%;
}

.jp-blog-post__cover img {
  width: 100%;
  display: block;
}

.jp-blog-post__content {
  max-width: 920px;
  width: 100%;
  margin: 0 auto;
  font-family: var(--jp-font-body);
  line-height: 1.75;
  color: #1d2939;
}

.jp-blog-post__content > * {
  margin: 0 0 18px;
}

.jp-blog-post__content p,
.jp-blog-post__content ul,
.jp-blog-post__content ol,
.jp-blog-post__content li,
.jp-blog-post__content blockquote,
.jp-blog-post__content figcaption {
  font-family: var(--jp-font-body);
}

.jp-blog-post__content h2,
.jp-blog-post__content h3,
.jp-blog-post__content h4 {
  color: #101828;
  line-height: 1.15;
}

.jp-blog-post__content figure {
  margin: 8px 0;
  display: grid;
  gap: 10px;
}

.jp-blog-post__content .jp-blog-media {
  margin: 8px 0 22px;
}

.jp-blog-post__content .jp-blog-video {
  display: block;
  float: none;
  clear: both;
  width: min(80%, 820px);
  max-width: 100%;
  min-width: 0;
  margin: 14px 0 26px;
  margin-inline: auto;
  box-sizing: border-box;
  justify-self: stretch;
  grid-column: 1 / -1;
}

.jp-blog-post__content .jp-blog-video video {
  display: block;
  width: 100%;
  max-width: 100%;
  border-radius: 24px;
  background: #111827;
  box-sizing: border-box;
}

.jp-blog-post__content > video,
.jp-blog-post__content p > video {
  display: block;
  float: none;
  clear: both;
  width: 100%;
  max-width: 100%;
  margin: 14px 0 26px;
  border-radius: 24px;
  background: #111827;
  box-sizing: border-box;
}

.jp-blog-post__content .jp-blog-video--portrait {
  max-width: 420px;
  margin-right: auto;
  margin-left: auto;
  justify-self: center;
}

.jp-blog-post__content .jp-blog-media--left,
.jp-blog-post__content .jp-blog-media--right {
  width: min(360px, 44%);
}

.jp-blog-post__content .jp-blog-media--left {
  float: left;
  margin: 6px 24px 16px 0;
}

.jp-blog-post__content .jp-blog-media--right {
  float: right;
  margin: 6px 0 16px 24px;
}

.jp-blog-post__content .jp-blog-gallery {
  display: grid;
  gap: 16px;
  margin: 10px 0 24px;
}

.jp-blog-post__content .jp-blog-gallery--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.jp-blog-post__content .jp-blog-gallery--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.jp-blog-post__content .jp-blog-gallery--1 {
  grid-template-columns: 1fr;
}

.jp-blog-post__content .jp-blog-gallery--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.jp-blog-post__content .jp-blog-gallery--5,
.jp-blog-post__content .jp-blog-gallery--6,
.jp-blog-post__content .jp-blog-gallery--7,
.jp-blog-post__content .jp-blog-gallery--8 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.jp-blog-post__content .jp-blog-gallery--carousel {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 8px;
  cursor: grab;
  user-select: none;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
}

.jp-blog-post__content .jp-blog-gallery--carousel.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
}

.jp-blog-post__content .jp-blog-gallery--carousel .jp-blog-gallery__item {
  flex: 0 0 min(360px, 78%);
  scroll-snap-align: start;
}

.jp-blog-post__content .jp-blog-gallery__item {
  display: grid;
  gap: 10px;
  margin: 0;
}

.jp-blog-post__content .jp-blog-gallery__item img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 18px;
  -webkit-user-drag: none;
}

.jp-blog-post__content .jp-blog-gallery__item figcaption {
  display: grid;
  gap: 5px;
}

.jp-blog-post__content .jp-blog-gallery__item figcaption h3 {
  margin: 0;
  color: #101828;
  font-size: 17px;
  line-height: 1.25;
}

.jp-blog-post__content .jp-blog-gallery__item figcaption p {
  margin: 0;
  color: var(--jp-muted);
  font-size: 14px;
  line-height: 1.5;
}

.jp-blog-post__content img {
  width: 100%;
  border-radius: 24px;
  display: block;
}

.jp-blog-post__content a {
  color: var(--jp-orange);
  text-decoration-color: rgba(255, 103, 0, 0.4);
}

.jp-blog-post__content a:hover {
  color: #d95a00;
}

.jp-blog-post__content figcaption {
  color: var(--jp-muted);
  font-size: 14px;
}

.jp-blog-post__content blockquote {
  padding: 20px 24px;
  border-left: 4px solid var(--jp-orange);
  background: #fff8ef;
  border-radius: 18px;
}

.jp-blog-post__content .jp-blog-cta {
  display: grid;
  gap: 18px;
  margin: 28px 0;
  padding: 24px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 22px;
  background: #fff;
  clear: both;
}

.jp-blog-post__content .jp-blog-cta__body {
  line-height: 1.7;
}

.jp-blog-post__content .jp-blog-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.jp-blog-post__content .jp-blog-cta__actions a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 14px;
  background: #f8fafc;
  color: #101828;
  font-weight: 600;
  text-decoration: none;
}

.jp-blog-post__content .jp-blog-cta__actions a:hover {
  border-color: rgba(255, 103, 0, 0.24);
  background: #fff8ef;
}

.jp-blog-post__content .jp-blog-cta__actions a img {
  display: block;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}

.jp-blog-product-selection-block {
  clear: both;
  margin: 34px 0;
  padding: 22px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 14px 32px rgba(16, 24, 40, 0.08);
}

.jp-blog-product-selection-block__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.jp-blog-product-selection-block__head h2,
.jp-blog-product-selection-block__head p {
  margin: 0;
}

.jp-blog-product-selection-block__head p {
  margin-top: 6px;
  color: #667085;
}

.jp-blog-product-selection-block__link,
.jp-blog-product-selection-block__mobile-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 12px;
  background: #ff6700;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.jp-blog-post__content .jp-blog-product-selection-block__link,
.jp-blog-post__content .jp-blog-product-selection-block__mobile-link {
  color: #fff;
  text-decoration: none;
}

.jp-blog-product-selection-block__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.jp-blog-product-selection-block__grid--mobile {
  display: none;
}

.jp-blog-product-selection-block__more {
  margin-top: 14px;
}

.jp-blog-product-selection-block__more summary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid #d0d5dd;
  border-radius: 12px;
  background: #fff;
  color: #344054;
  cursor: pointer;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  list-style: none;
  user-select: none;
}

.jp-blog-product-selection-block__more summary::-webkit-details-marker {
  display: none;
}

.jp-blog-product-selection-block__more summary::after {
  content: "";
  width: 7px;
  height: 7px;
  margin-left: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
}

.jp-blog-product-selection-block__more[open] summary {
  border-color: rgba(255, 103, 0, 0.32);
  color: #c2410c;
}

.jp-blog-product-selection-block__more[open] summary::after {
  transform: rotate(225deg) translate(-2px, -1px);
}

.jp-blog-product-selection-block__grid--more {
  margin-top: 12px;
}

.jp-blog-product-selection-card {
  display: grid;
  grid-template-rows: auto 1fr;
  min-width: 0;
  overflow: hidden;
  border: 1px solid #eef2f7;
  border-radius: 14px;
  background: #fff;
  color: #101828;
  text-decoration: none;
}

.jp-blog-product-selection-card__link {
  display: grid;
  grid-template-rows: auto 1fr;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.jp-blog-post__content .jp-blog-product-selection-card {
  color: #101828;
  text-decoration: none;
}

.jp-blog-post__content .jp-blog-product-selection-card__link {
  color: #101828;
  text-decoration: none;
}

.jp-blog-product-selection-card__image {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
  padding: 12px;
  background: #fff;
}

.jp-blog-product-selection-card__image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 10px;
}

.jp-blog-product-selection-card__body {
  display: grid;
  gap: 6px;
  padding: 12px;
}

.jp-blog-product-selection-card__body strong {
  color: #101828;
  font-size: 14px;
  line-height: 1.3;
}

.jp-blog-product-selection-card__body span {
  color: #667085;
  font-size: 12px;
}

.jp-blog-product-selection-card__body em {
  color: #101828;
  font-size: 14px;
  font-style: normal;
  font-weight: 800;
}

.jp-blog-product-selection-card__variants {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding: 0 12px 12px;
}

.jp-blog-product-selection-card__variant {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid #e4e7ec;
  border-radius: 999px;
  background: #fff;
  color: #344054;
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.jp-blog-product-selection-card__variant img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
}

.jp-blog-product-selection-card__variant span {
  font-size: 11px;
  font-weight: 800;
}

.jp-blog-product-selection-card__variant.is-active {
  border-color: #ff6700;
  box-shadow: 0 0 0 3px rgba(255, 103, 0, 0.14);
}

.jp-blog-product-selection-card__variant:hover,
.jp-blog-product-selection-card__variant:focus-visible {
  border-color: #ff6700;
  outline: none;
  transform: translateY(-1px);
}

.jp-blog-product-selection-block__mobile-link {
  display: none;
  margin-top: 14px;
}

.jp-blog-post__footer {
  display: flex;
  max-width: 920px;
  width: 100%;
  margin: 0 auto;
}

.jp-blog-post__adjacent,
.jp-blog-post__related {
  max-width: 920px;
  width: 100%;
  margin: 0 auto;
}

.jp-blog-post__adjacent {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.jp-blog-post__adjacent-card {
  display: grid;
  gap: 10px;
  padding: 22px;
  border-radius: 24px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: linear-gradient(180deg, #ffffff 0%, #fff8ef 100%);
  color: inherit;
  text-decoration: none;
  box-shadow: 0 18px 40px rgba(16, 24, 40, 0.06);
}

.jp-blog-post__adjacent-card--next {
  text-align: right;
}

.jp-blog-post__adjacent-card strong {
  color: #101828;
  font-size: 20px;
  line-height: 1.25;
}

.jp-blog-post__adjacent-label,
.jp-blog-post__related-eyebrow {
  color: var(--jp-accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.jp-blog-post__related {
  display: grid;
  gap: 22px;
}

.jp-blog-post__related-head h2 {
  margin: 8px 0 0;
  font-size: clamp(28px, 4vw, 38px);
  line-height: 1.08;
}

.jp-blog-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 36px;
  flex-wrap: wrap;
}

.jp-blog-pagination__pages {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.jp-blog-pagination__page,
.jp-blog-pagination__nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(25, 30, 38, 0.12);
  background: #fff;
  color: var(--jp-text);
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.jp-blog-pagination__page:hover,
.jp-blog-pagination__nav:hover {
  border-color: rgba(255, 103, 0, 0.32);
  color: var(--jp-orange);
  background: #fff8ef;
  transform: translateY(-1px);
}

.jp-blog-pagination__page.is-active {
  border-color: var(--jp-orange);
  background: var(--jp-orange);
  color: #fff;
}

.jp-blog-pagination__dots {
  color: var(--jp-muted);
  font-weight: 700;
  letter-spacing: 0.08em;
}

.jp-blog-shortcode {
  display: grid;
  gap: 24px;
}

.jp-blog-shortcode__head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.jp-blog-shortcode__head h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.08;
}

.jp-blog-shortcode__eyebrow {
  display: inline-flex;
  margin-bottom: 10px;
  color: var(--jp-accent);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 13px;
}

.jp-blog-shortcode__text {
  margin: -8px 0 0;
  max-width: 860px;
  color: var(--jp-muted);
  font-family: var(--jp-font-body);
  font-size: 18px;
  line-height: 1.65;
}

.jp-blog-shortcode__grid {
  margin-top: 12px;
}

@media (max-width: 1040px) {
  .jp-blog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .jp-blog-product-selection-block__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .jp-blog-grid {
    grid-template-columns: 1fr;
  }

  .jp-blog-shortcode__grid {
    display: flex;
    flex-wrap: nowrap;
    gap: 16px;
    margin-top: 16px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding-right: 16px;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 4px;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .jp-blog-shortcode__grid::-webkit-scrollbar {
    display: none;
  }

  .jp-blog-shortcode__grid .jp-blog-card {
    flex: 0 0 92%;
    min-width: 0;
    max-width: 92%;
    scroll-snap-align: start;
  }

  .jp-blog-shortcode__head .jp-btn {
    width: 100%;
    min-height: 46px;
    display: flex;
    justify-content: center;
  }

  .jp-blog-shortcode__grid .jp-blog-card__body,
  .jp-blog-shortcode__grid .jp-blog-card__link {
    min-width: 0;
  }

  .jp-blog,
  .jp-blog-post {
    padding: 36px 0 64px;
  }

  .jp-blog-post__adjacent {
    grid-template-columns: 1fr;
  }

  .jp-blog-post__adjacent-card--next {
    text-align: left;
  }

  .jp-blog-shortcode__head {
    align-items: start;
  }

  .jp-blog-post__content .jp-blog-video {
    width: 100%;
  }

  .jp-blog-post__content .jp-blog-media--left,
  .jp-blog-post__content .jp-blog-media--right {
    float: none;
    width: 100%;
    margin: 0 0 18px;
  }

  .jp-blog-post__content .jp-blog-gallery--2,
  .jp-blog-post__content .jp-blog-gallery--3,
  .jp-blog-post__content .jp-blog-gallery--4,
  .jp-blog-post__content .jp-blog-gallery--5,
  .jp-blog-post__content .jp-blog-gallery--6,
  .jp-blog-post__content .jp-blog-gallery--7,
  .jp-blog-post__content .jp-blog-gallery--8 {
    grid-template-columns: 1fr;
  }

  .jp-blog-product-selection-block {
    margin: 28px -16px;
    padding: 18px 0 18px 16px;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
  }

  .jp-blog-product-selection-block__head {
    display: grid;
    gap: 10px;
    margin-right: 16px;
  }

  .jp-blog-product-selection-block__link {
    display: none;
  }

  .jp-blog-product-selection-block__desktop:has(.jp-blog-product-selection-block__more) {
    display: none;
  }

  .jp-blog-product-selection-block__grid {
    display: flex;
    flex-wrap: nowrap;
    gap: 12px;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0 16px 4px 0;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .jp-blog-product-selection-block__grid--mobile {
    display: flex;
  }

  .jp-blog-product-selection-block__more {
    margin-right: 16px;
  }

  .jp-blog-product-selection-block__more summary {
    width: calc(100% - 16px);
  }

  .jp-blog-product-selection-block__grid::-webkit-scrollbar {
    display: none;
  }

  .jp-blog-product-selection-block__grid--more {
    margin-top: 12px;
    padding-right: 0;
  }

  .jp-blog-product-selection-card {
    flex: 0 0 74%;
    max-width: 74%;
    scroll-snap-align: start;
  }

  .jp-blog-product-selection-block__mobile-link {
    display: inline-flex;
    margin-right: 16px;
  }

  .jp-blog-pagination {
    gap: 10px;
  }

  .jp-blog-pagination__page,
  .jp-blog-pagination__nav {
    min-width: 40px;
    min-height: 40px;
    padding: 0 14px;
  }
}
