/**
 * Single news page — structural parity with Nuxt news detail.
 */

/* Inner pages use #f0f5ff body; keep single news chrome solid white (same as listing). */
body.artek-news-single-page {
  background: #fff !important;
}

body.artek-news-single-page .site-main--content {
  background: #fff;
}

body.artek-news-single-page .artek-page-hero {
  background: #fff;
}

.artek-news-single {
  --artek-news-base: #001330;
  --artek-news-weak: #ffffff;
  --artek-news-faint: #808997;
  --artek-news-accent: #ee712b;
  --artek-news-accent-strong: #e64840;
  --artek-news-complement-weak: #e6f0ff;
  --artek-news-gradient: linear-gradient(226deg, #d80960 0%, #fec200 100%);
  box-sizing: border-box;
  position: relative;
  z-index: 4;
  width: 100%;
  margin: 0;
  padding: 0 0 var(--artek-content-footer-clearance, 5rem);
  color: var(--artek-news-base);
  background: #fff;
}

.artek-news-single *,
.artek-news-single *::before,
.artek-news-single *::after {
  box-sizing: border-box;
}

.artek-news-single__inner {
  width: min(100% - 2.5rem, 87.5rem); /* Nuxt .container max 1464px */
  margin: 0 auto 3.5rem; /* Nuxt .container.mb-14 */
  padding: 0;
}

/* Nuxt: section.flex.space-x-3.5.sm:justify-center.hidden.sm:flex.my-6 */
.artek-news-single__social {
  display: none;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.875rem;
  margin: 1.5rem 0;
  padding: 0;
}

@media (min-width: 640px) {
  .artek-news-single__social {
    display: flex;
  }
}

.artek-news-single__social-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 9999px;
  color: #fff;
  text-decoration: none;
  transition: transform 0.3s ease;
}

.artek-news-single__social-link:hover {
  transform: scale(1.125);
}

.artek-news-single__social-icon {
  display: inline-flex;
  width: 1.5rem;
  height: 1.5rem;
  color: inherit;
}

.artek-news-single__social-icon svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.artek-news-single__social-link--vk {
  background: #2787f5;
}

.artek-news-single__social-link--telegram {
  background: linear-gradient(135deg, #2aabee 0%, #229ed9 100%);
}

.artek-news-single__social-link--rutube {
  background: #1a1a1a;
}

.artek-news-single__social-link--youtube {
  background: #ff0000;
}

.artek-news-single__social-link--ok {
  background: #ee8208;
}

/* Nuxt h1: Lato-Black 80px / line-height 80px / weight 700 / #001330 */
.artek-news-single__title {
  margin: 0 0 2rem;
  color: #001330;
  font-family: "Lato-Black", Lato, sans-serif;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
  text-align: center;
}

@media (min-width: 768px) {
  .artek-news-single__title {
    font-size: 3.75rem;
  }
}

@media (min-width: 1536px) {
  .artek-news-single__title {
    font-size: 5rem;
    line-height: 5rem;
  }
}

.artek-news-single__content {
  margin-top: 2rem;
  font-family: "Lato-Regular", Lato, sans-serif;
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--artek-news-base);
}

.artek-news-single__content > *:first-child {
  margin-top: 0;
}

.artek-news-single__content img {
  max-width: 100%;
  height: auto;
}

.artek-news-single .artek-carousel {
  margin: 1.5rem 0 0;
}

/*
 * Nuxt: <img class="relative left-1/2 -translate-x-1/2 w-full"> then
 * <section class="relative z-40 pb-10 bg-gradient-to-b from-complement-weak-u">
 */
.artek-news-single__wave {
  position: relative;
  display: block;
  left: 50%;
  width: 100vw;
  max-width: none;
  height: auto;
  margin: 0;
  padding: 0;
  transform: translateX(-50%);
  line-height: 0;
  pointer-events: none;
}

.artek-news-single__related {
  position: relative;
  z-index: 40;
  width: 100%;
  margin: 0;
  padding: 0 0 2.5rem;
  background: linear-gradient(180deg, #f0f5ff 0%, rgba(240, 245, 255, 0) 100%);
}

.artek-news-single__related-inner {
  width: min(100% - 2.5rem, 87.5rem);
  margin: 0 auto;
  padding: 1rem 0 0; /* Nuxt news-short-list pt-4 */
}

.artek-news-single__related-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  margin: 0 0 1.5rem;
  padding: 0 0 4rem; /* Nuxt pb-16 */
  border-bottom: 1px solid rgba(0, 19, 48, 0.2);
}

.artek-news-single__related-title {
  margin: 0;
  font-family: "Lato-Black", Lato, sans-serif;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 900;
  text-transform: uppercase;
  color: var(--artek-news-base);
}

/* CTA styles (from home .artek-news__cta) — keep related independent of home-sections.css */
.artek-news-single__related-cta.artek-news__cta {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-height: auto;
  padding: 10px 24px;
  gap: 8px;
  color: #e64840;
  font-family: "Lato-Regular", Lato, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  border: 0;
  border-radius: 9999px;
  background: none;
  box-shadow:
    -1px 0.5px 1px 0 #fec200,
    1px 0.5px 1px 0 #d80960,
    -1px -0.5px 1px 0 #fec200,
    1px -0.5px 1px 0 #d80960;
  transition: color 0.3s ease;
}

.artek-news-single__related-cta.artek-news__cta::before {
  position: absolute;
  inset: 0 0 0 auto;
  z-index: 0;
  width: 0;
  content: "";
  border-radius: 9999px;
  background-image: linear-gradient(226deg, #d80960, #fec200);
  transition: width 0.3s ease, left 0.3s ease;
}

.artek-news-single__related-cta.artek-news__cta > span {
  position: relative;
  z-index: 1;
}

.artek-news-single__related-cta.artek-news__cta:hover,
.artek-news-single__related-cta.artek-news__cta:focus {
  color: #fff;
}

.artek-news-single__related-cta.artek-news__cta:hover::before,
.artek-news-single__related-cta.artek-news__cta:focus::before {
  left: 0;
  width: 100%;
}

.artek-news-single__related-cta .artek-btn__arrow {
  position: relative;
  z-index: 1;
  display: inline-flex;
  width: 1.25rem;
  height: 1.25rem;
}

.artek-news-single__related-cta .artek-btn__arrow svg {
  width: 100%;
  height: 100%;
}

.artek-news-single__related-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.artek-news-single__related-list .artek-news-page__media {
  flex-shrink: 0;
}

@media (max-width: 47.9375rem) {
  .artek-news-single__related-head {
    padding-bottom: 2rem;
  }
}
