.my-blog-detail {
  display: block;
  color: var(--color-black-1);
  background: var(--color-white);
}

.my-blog-detail__layout {
  display: grid;
  grid-template-columns: minmax(220px, 300px) minmax(0, 800px);
  justify-content: center;
  gap: clamp(24px, 3vw, 40px);
  padding: 60px 0 40px;
}

.my-blog-detail__layout--full {
  grid-template-columns: minmax(0, 800px);
}

.my-blog-detail__sidebar,
.my-blog-detail__main {
  min-width: 0;
}

.my-blog-detail__sidebar-inner {
  position: sticky;
  top: calc(var(--my-header-height, 56px) + 24px);
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.my-blog-detail__sidebar--download-only .my-blog-detail__sidebar-inner {
  gap: 0;
}

.my-blog-detail__toc-title {
  margin: 0 0 16px;
  font-size: 18px;
  font-weight: 600;
  line-height: 24px;
}

.my-blog-detail__toc-nav {
  display: flex;
  flex-direction: column;
}

.my-blog-detail__toc-link {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 16px 8px 14px;
  border-left: 2px solid var(--valki-blog-detail-divider);
  color: var(--color-black-1);
  font-size: 14px;
  font-weight: 500;
  line-height: 22px;
  text-decoration: none;
  transition: background-color 160ms ease, border-color 160ms ease;
}

.my-blog-detail__toc-link:hover,
.my-blog-detail__toc-link:focus-visible,
.my-blog-detail__toc-link[aria-current="location"] {
  background: var(--valki-blog-detail-active-bg);
}

.my-blog-detail__toc-link[aria-current="location"] {
  border-left-color: var(--color-black-1);
}

.my-blog-detail__download-card {
  display: flex;
  padding: 16px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  border-radius: 12px;
  background: var(--valki-blog-detail-surface);
}

.my-blog-detail__download-copy {
  display: flex;
  width: 100%;
  min-width: 0;
  flex-direction: column;
  gap: 8px;
}

.my-blog-detail__download-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
}

.my-blog-detail__download-heading strong {
  font-weight: inherit;
}

.my-blog-detail__download-heading > span {
  display: flex;
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  align-items: center;
  justify-content: center;
}

.my-blog-detail__download-heading-icon {
  display: block;
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.my-blog-detail__download-filename {
  display: -webkit-box;
  overflow: hidden;
  color: var(--color-text-muted);
  font-size: 14px;
  line-height: 22px;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.my-blog-detail__download-button {
  --valki-button-min-width: 0;
  --valki-button-padding-block: 7px;
  --valki-button-line-height: 20px;
  --valki-button-transition: 160ms ease;
}

.my-blog-detail__article-header {
  display: flex;
  padding-bottom: 24px;
  flex-direction: column;
  gap: 12px;
  border-bottom: 1px solid var(--valki-blog-detail-divider);
}

.my-blog-detail__article-title {
  margin: 0;
  font-size: 40px;
  font-weight: 600;
  line-height: 48px;
  letter-spacing: 0;
}

.my-blog-detail__article-meta {
  display: flex;
  min-height: 32px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.my-blog-detail__article-meta time {
  color: var(--color-text-muted);
  font-size: 14px;
  line-height: 22px;
}

.my-blog-detail__socials {
  display: flex;
  align-items: center;
  gap: 20px;
}

.my-blog-detail__social {
  display: inline-flex;
  width: 32px;
  height: 32px;
  padding: 4px;
  flex: 0 0 32px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  color: var(--color-black-1);
  background: #eef4ff;
  cursor: pointer;
  text-decoration: none;
  transition: color 160ms ease, background-color 160ms ease;
}

.my-blog-detail__social:hover,
.my-blog-detail__social:focus-visible {
  background: var(--valki-blog-detail-card-hover);
}

.my-blog-detail__social-icon {
  display: block;
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.my-blog-detail__social--email .my-blog-detail__social-icon {
  width: 18px;
  height: 18px;
}

.my-blog-detail__mobile-download {
  display: none;
}

.my-blog-detail__content {
  display: flex;
  padding-top: 40px;
  flex-direction: column;
  gap: 40px;
}

.my-blog-detail__block,
.my-blog-detail__anchor-target {
  min-width: 0;
  scroll-margin-top: calc(var(--my-header-height, 56px) + 36px);
}

.my-blog-detail__block--rich-text-media,
.my-blog-detail__block--product-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.my-blog-detail__block--faq-list,
.my-blog-detail__block--related-links {
  display: flex;
  width: 100%;
  min-width: 0;
  flex-direction: column;
  gap: 24px;
}

.my-blog-detail-faq__inner {
  display: flex;
  width: 100%;
  min-width: 0;
  flex-direction: column;
  gap: 0;
}

.my-blog-detail-faq__heading {
  margin: 0;
  color: var(--color-black-1);
  font-size: 28px;
  font-weight: 700;
  line-height: 36px;
}

@media (min-width: 992px) {
  .my-blog-detail__block--faq-list .app-faq-item summary {
    padding: 24px 8px 24px 0;
  }

  .my-blog-detail__block--faq-list .app-faq-item__answer {
    padding: 0 8px 24px 0;
  }
}

.my-blog-detail-related-links__heading {
  margin: 0;
  color: var(--color-black-1);
  font-size: 28px;
  font-weight: 700;
  line-height: 36px;
  text-align: left;
}

.my-blog-detail-related-links__grid {
  display: grid;
  width: 100%;
  min-width: 0;
  grid-template-columns: repeat(var(--my-blog-related-links-columns, 3), minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
  margin: 0;
  padding: 0;
  list-style: none;
}

.my-blog-detail__text-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.my-blog-detail__heading,
.my-blog-detail__subheading,
.my-blog-detail__richtext,
.my-blog-detail__richtext > :first-child,
.my-blog-detail__richtext > :last-child {
  margin: 0;
}

.my-blog-detail__heading + .my-blog-detail__richtext,
.my-blog-detail__subheading + .my-blog-detail__richtext {
  margin-top: 16px;
}

.my-blog-detail__heading {
  font-size: 28px;
  font-weight: 700;
  line-height: 36px;
}

.my-blog-detail__subheading {
  font-size: 20px;
  font-weight: 500;
  line-height: 30px;
}

.my-blog-detail__richtext {
  color: var(--color-black-1);
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
}

.my-blog-detail__richtext > * {
  margin-block: 0 16px;
}

.my-blog-detail__richtext > :last-child {
  margin-bottom: 0;
}

.my-blog-detail__richtext ul,
.my-blog-detail__richtext ol {
  padding-left: 24px;
}

.my-blog-detail__richtext a {
  color: #094F9C;
  text-decoration: unset;
}

.my-blog-detail__richtext a:hover {
  text-decoration: underline;
}

.my-blog-detail__media {
  position: relative;
  width: 100%;
  aspect-ratio: var(--valki-blog-media-aspect-ratio);
  overflow: hidden;
  border-radius: var(--valki-blog-card-radius);
  background: var(--color-surface-muted);
}

.my-blog-detail__media > img,
.my-blog-detail__media > video,
.my-blog-detail__media > svg,
.my-blog-detail__video-poster,
.my-blog-detail__video-poster img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.my-blog-detail__video-poster {
  position: absolute;
  inset: 0;
}

.my-blog-detail__play {
  position: absolute;
  right: 20px;
  bottom: 20px;
  display: inline-flex;
  width: 48px;
  height: 48px;
  padding: 0;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  color: var(--color-white);
  background: rgba(0, 0, 0, 0.16);
  cursor: pointer;
}

.my-blog-detail__play .icon {
  width: 48px;
  height: 48px;
}

.my-blog-detail__media.is-playing .my-blog-detail__video-poster,
.my-blog-detail__media.is-playing .my-blog-detail__play {
  display: none;
}

.my-blog-detail__products {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.my-blog-detail-product {
  display: grid;
  min-height: 152px;
  padding: 16px;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 12px;
  border-radius: 12px;
  color: var(--color-black-1);
  background: var(--valki-blog-detail-surface);
  text-decoration: none;
  transition: background-color 160ms ease;
}

.my-blog-detail-product:hover,
.my-blog-detail-product:focus-visible {
  background: var(--valki-blog-detail-card-hover);
}

.my-blog-detail-product__media {
  width: 120px;
  height: 120px;
  overflow: hidden;
  border-radius: 8px;
  background: var(--color-white);
}

.my-blog-detail-product__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.my-blog-detail-product__content,
.my-blog-detail-product__copy,
.my-blog-detail-product__text {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.my-blog-detail-product__content {
  justify-content: space-between;
  gap: 12px;
}

.my-blog-detail-product__copy {
  gap: 8px;
}

.my-blog-detail-product__text {
  gap: 4px;
}

.my-blog-detail-product__tags {
  display: flex;
  min-height: 18px;
  flex-wrap: wrap;
  gap: 8px;
}

.my-blog-detail-product__tag {
  display: inline-flex;
  min-height: 18px;
  padding: 1px 8px;
  align-items: center;
  border-radius: 20px;
  color: var(--color-white);
  background: var(--color-black-1);
  font-size: 12px;
  font-weight: 600;
  line-height: 16px;
}

.my-blog-detail-product__tag--accent {
  background: #E54C1D;
}

.my-blog-detail-product__title,
.my-blog-detail-product__description {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.my-blog-detail-product__title {
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
}

.my-blog-detail-product__description {
  color: var(--color-text-muted);
  font-size: 14px;
  line-height: 20px;
}

.my-blog-detail-product__footer,
.my-blog-detail-product__prices {
  display: flex;
  align-items: center;
}

.my-blog-detail-product__footer {
  justify-content: space-between;
  gap: 16px;
}

.my-blog-detail-product__prices {
  min-width: 0;
  gap: 8px;
}

.my-blog-detail-product__price {
  font-size: 22px;
  font-weight: 700;
  line-height: 30px;
}

.my-blog-detail-product__compare-price {
  color: var(--color-text-muted);
  font-size: 14px;
  line-height: 20px;
  text-decoration: line-through;
}

.my-blog-detail-product__button {
  flex: 0 0 auto;
}

.my-blog-detail__mobile-toc,
.my-blog-detail__mobile-overlay {
  display: none;
}

.my-blog-detail__mobile-toc[hidden],
.my-blog-detail__mobile-toc-panel[hidden],
.my-blog-detail__mobile-overlay[hidden] {
  display: none !important;
}

@media (prefers-reduced-motion: reduce) {
  .my-blog-detail *,
  .my-blog-detail *::before,
  .my-blog-detail *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 991px) {
  body.my-blog-detail-menu-open {
    overflow: hidden;
  }

  .my-blog-detail__layout {
    display: block;
    padding: 24px 0;
  }

  .my-blog-detail__sidebar {
    display: none;
  }

  .my-blog-detail__article-title {
    font-size: 24px;
    font-weight: 700;
    line-height: 32px;
  }

  .my-blog-detail__article-meta {
    gap: 16px;
  }

  .my-blog-detail__socials {
    gap: 12px;
  }

  .my-blog-detail__mobile-download {
    display: block;
    margin-top: 24px;
  }

  .my-blog-detail__content {
    padding-top: 24px;
    gap: 24px;
  }

  .my-blog-detail__block,
  .my-blog-detail__anchor-target {
    scroll-margin-top: calc(var(--my-header-height, 48px) + 20px);
  }

  .my-blog-detail__block--rich-text-media,
  .my-blog-detail__block--product-list {
    gap: 16px;
  }

  .my-blog-detail-faq__heading {
    font-size: 24px;
    line-height: 34px;
  }

  .my-blog-detail-related-links__heading {
    font-size: 24px;
    line-height: 34px;
  }

  .my-blog-detail-related-links__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .my-blog-detail__heading {
    font-size: 20px;
    line-height: 28px;
  }

  .my-blog-detail__subheading {
    font-size: 16px;
    line-height: 22px;
  }

  .my-blog-detail__heading + .my-blog-detail__richtext,
  .my-blog-detail__subheading + .my-blog-detail__richtext {
    margin-top: 8px;
  }

  .my-blog-detail__richtext {
    font-size: 14px;
    line-height: 22px;
  }

  .my-blog-detail__richtext > * {
    margin-bottom: 16px;
  }

  .my-blog-detail__play {
    right: 12px;
    bottom: 12px;
    width: 40px;
    height: 40px;
  }

  .my-blog-detail__play .icon {
    width: 40px;
    height: 40px;
  }

  .my-blog-detail__products {
    gap: 16px;
  }

  .my-blog-detail-product {
    min-height: 0;
    padding: 8px;
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 8px;
  }

  .my-blog-detail-product__media {
    width: 56px;
    height: 56px;
    border-radius: 6px;
  }

  .my-blog-detail-product__content {
    gap: 8px;
  }

  .my-blog-detail-product__copy {
    gap: 4px;
  }

  .my-blog-detail-product__tags {
    min-height: 16px;
    gap: 4px;
  }

  .my-blog-detail-product__tag {
    min-height: 16px;
    padding: 0 6px;
    font-size: 10px;
    line-height: 16px;
  }

  .my-blog-detail-product__title {
    font-size: 14px;
    line-height: 20px;
    -webkit-line-clamp: 1;
  }

  .my-blog-detail-product__description {
    font-size: 14px;
    line-height: 20px;
  }

  .my-blog-detail-product__footer {
    gap: 8px;
  }

  .my-blog-detail-product__prices {
    gap: 6px;
  }

  .my-blog-detail-product__price {
    font-size: 16px;
    line-height: 22px;
  }

  .my-blog-detail-product__compare-price {
    font-size: 12px;
    line-height: 18px;
  }

  .my-blog-detail-product__button {
    --valki-button-min-width: 80px;
    --valki-button-padding-block: 4px;
    --valki-button-padding-inline: 14px;
  }

  .my-blog-detail__mobile-toc {
    position: fixed;
    z-index: 1040;
    top: 0;
    right: 0;
    left: 0;
    display: block;
    color: var(--color-black-1);
    background: var(--color-white);
    box-shadow: var(--valki-blog-detail-sticky-shadow);
  }

  .my-blog-detail__mobile-toc-trigger {
    display: flex;
    width: 100%;
    height: 52px;
    padding: 12px 16px;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border: 0;
    color: var(--color-black-1);
    background: var(--color-white);
    font-size: 20px;
    font-weight: 700;
    line-height: 28px;
    text-align: left;
    cursor: pointer;
  }

  .my-blog-detail__mobile-toc-trigger > span:first-child {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }

  .my-blog-detail__mobile-toc-arrow,
  .my-blog-detail__mobile-toc-arrow .icon {
    display: block;
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    transition: transform 160ms ease;
  }

  .my-blog-detail__mobile-toc.is-open .my-blog-detail__mobile-toc-arrow {
    transform: rotate(180deg);
  }

  .my-blog-detail__mobile-toc-panel {
    max-height: calc(100vh - 52px);
    padding: 16px 0;
    overflow-y: auto;
    border-top: 1px solid var(--valki-blog-detail-divider);
    background: var(--color-white);
  }

  .my-blog-detail__mobile-toc-panel nav {
    display: flex;
    flex-direction: column;
  }

  .my-blog-detail__mobile-toc-link {
    display: flex;
    min-height: 40px;
    padding: 8px 16px;
    align-items: center;
    color: var(--color-black-1);
    font-size: 14px;
    font-weight: 500;
    line-height: 22px;
    text-decoration: none;
  }

  .my-blog-detail__mobile-toc-link:hover,
  .my-blog-detail__mobile-toc-link:focus-visible,
  .my-blog-detail__mobile-toc-link[aria-current="location"] {
    background: var(--valki-blog-detail-active-bg);
  }

  .my-blog-detail__mobile-overlay {
    position: fixed;
    z-index: 1030;
    top: 52px;
    right: 0;
    bottom: 0;
    left: 0;
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(2.667px);
    cursor: default;
  }
}
