/* ============================================================
   Любощі — Single Post (blog) template
   Editorial layout · red-gradient brand · GothamPro + system serif
   ============================================================ */

/* Hide parent-theme page-header (duplicate H1 + theme breadcrumbs) on blog posts. */
body.single-post .lte-page-header,
body.single-post header.lte-page-header.lte-parallax-yes,
body.single-post .lte-header-wrapper.hasBreadcrumbs > header.lte-page-header,
body.single-post .lte-header-wrapper.hasBreadcrumbs > .container > .lte-header-h1-wrapper,
body.single-post .lte-header-wrapper.hasBreadcrumbs > .container > ul.breadcrumbs {
  display: none !important;
}
body.single-post .lte-header-wrapper.hasBreadcrumbs { padding-bottom: 0 !important; }

:root {
  --lyu-grad:        linear-gradient(135deg, #f2053c 0%, #cb003d 100%);
  --lyu-red:         #f2053c;
  --lyu-red-dark:    #cb003d;
  --lyu-red-soft:    #fff0f3;
  --lyu-dark:        #101010;
  --lyu-charcoal:    #1c1c1c;
  --lyu-text:        #1a1a2e;
  --lyu-text-2:      #2d3142;
  --lyu-muted:       #6b7280;
  --lyu-muted-2:     #767676;
  --lyu-line:        #e2e4e9;
  --lyu-line-soft:   #ebebf0;
  --lyu-surface:     #fafafa;
  --lyu-surface-2:   #f4f5f7;
  --lyu-card:        #ffffff;
  --lyu-radius-sm:   8px;
  --lyu-radius:      14px;
  --lyu-radius-lg:   20px;
  --lyu-radius-xl:   28px;
  --lyu-shadow-sm:   0 1px 4px rgba(0,0,0,.07);
  --lyu-shadow-md:   0 4px 20px rgba(0,0,0,.08);
  --lyu-shadow-lg:   0 12px 40px rgba(0,0,0,.12);
  --lyu-shadow-cta:  0 8px 24px rgba(242,5,60,.28);
  --lyu-ease:        .22s ease;
  --lyu-serif:       "Iowan Old Style", "Apple Garamond", Baskerville, "Times New Roman", "Droid Serif", Times, "Source Serif Pro", serif;
}

/* Container — matches Любощі shop width */
.lyu-blog { background: var(--lyu-surface); color: var(--lyu-text); }
.lyu-blog * { box-sizing: border-box; }
.lyu-blog__wrap {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ── Reading progress bar (top) ── */
.lyu-blog__progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 3px;
  z-index: 1000;
  background: transparent;
  pointer-events: none;
}
.lyu-blog__progress span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--lyu-grad);
  transition: width .12s linear;
}
body.admin-bar .lyu-blog__progress { top: 32px; }
@media (max-width: 782px) {
  body.admin-bar .lyu-blog__progress { top: 46px; }
}

/* ── Breadcrumb strip ── */
.lyu-blog__bc {
  background: var(--lyu-card);
  border-bottom: 1px solid var(--lyu-line);
  padding: 12px 0;
  font-size: 12px;
}
.lyu-blog__bc .lyu-blog__wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  color: var(--lyu-muted);
}
.lyu-blog__bc a {
  color: var(--lyu-muted);
  text-decoration: none;
  transition: color var(--lyu-ease);
}
.lyu-blog__bc a:hover { color: var(--lyu-red); }
.lyu-blog__bc-sep { color: var(--lyu-line); }
.lyu-blog__bc-current {
  color: var(--lyu-charcoal);
  font-weight: 600;
  max-width: 320px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ── HERO ── */
.lyu-article__hero {
  padding: 28px 0 32px;
  background: var(--lyu-card);
  border-bottom: 1px solid var(--lyu-line);
}
.lyu-article__cat {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 999px;
  background: var(--lyu-red-soft);
  color: var(--lyu-red);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: none;
  margin-bottom: 18px;
  transition: background var(--lyu-ease);
}
.lyu-article__cat:hover { background: var(--lyu-red); color: #fff; }

.lyu-article__title {
  font-family: var(--lyu-serif);
  font-size: clamp(28px, 4.5vw, 46px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.6px;
  color: var(--lyu-charcoal);
  margin: 0 0 16px;
  text-wrap: balance;
}
.lyu-article__lede {
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.55;
  color: var(--lyu-text-2);
  margin: 0 0 24px;
  max-width: 720px;
  text-wrap: pretty;
}

.lyu-article__meta {
  border-top: 1px solid var(--lyu-line);
  border-bottom: 1px solid var(--lyu-line);
  padding: 16px 0;
  margin: 0 0 28px;
}
.lyu-article__meta-author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.lyu-article__avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--lyu-red-soft);
}
.lyu-article__author-name {
  display: block;
  color: var(--lyu-charcoal);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  line-height: 1.2;
}
.lyu-article__author-name:hover { color: var(--lyu-red); }
.lyu-article__meta-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 2px;
  font-size: 12px;
  color: var(--lyu-muted);
}
.lyu-article__meta-dot { color: var(--lyu-line); }

.lyu-article__cover {
  margin: 0 0 28px;
  border-radius: var(--lyu-radius-lg);
  overflow: hidden;
  background: var(--lyu-surface-2);
}
.lyu-article__cover img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.lyu-article__cover figcaption {
  padding: 10px 14px;
  font-size: 12px;
  color: var(--lyu-muted);
  background: var(--lyu-surface-2);
  text-align: center;
  font-style: italic;
}

/* ── GRID (article + sidebar) ── */
.lyu-article__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  padding-top: 36px;
  padding-bottom: 48px;
}
.lyu-article__sidebar { display: none; }

/* ── ARTICLE BODY ── */
.lyu-article__body {
  font-size: 17px;
  line-height: 1.78;
  color: var(--lyu-text-2);
  max-width: 720px;
  margin: 0 auto;
}
.lyu-article__body > *:first-child { margin-top: 0; }
.lyu-article__body > *:last-child { margin-bottom: 0; }
.lyu-article__body p {
  margin: 0 0 22px;
}
.lyu-article__body p:first-of-type::first-letter {
  /* Subtle drop-cap on first paragraph */
  font-family: var(--lyu-serif);
  font-weight: 700;
  font-size: 3.6em;
  line-height: 0.9;
  float: left;
  padding: 6px 12px 0 0;
  color: var(--lyu-red);
}
.lyu-article__body h2,
.lyu-article__body h3,
.lyu-article__body h4 {
  font-family: var(--lyu-serif);
  color: var(--lyu-charcoal);
  letter-spacing: -0.3px;
  scroll-margin-top: 80px;
}
.lyu-article__body h2 {
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 700;
  line-height: 1.25;
  margin: 44px 0 16px;
  position: relative;
}
.lyu-article__body h2::before {
  content: "";
  position: absolute;
  left: -16px;
  top: 14px;
  width: 4px;
  height: calc(100% - 18px);
  background: var(--lyu-grad);
  border-radius: 2px;
}
.lyu-article__body h3 {
  font-size: clamp(18px, 2.2vw, 22px);
  font-weight: 700;
  margin: 32px 0 12px;
}
.lyu-article__body h4 {
  font-size: 18px;
  font-weight: 700;
  margin: 24px 0 10px;
}
.lyu-article__body a {
  color: var(--lyu-red);
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
  transition: color var(--lyu-ease);
}
.lyu-article__body a:hover { color: var(--lyu-red-dark); text-decoration-thickness: 2px; }
.lyu-article__body strong { color: var(--lyu-charcoal); font-weight: 700; }
.lyu-article__body em { font-style: italic; }
.lyu-article__body ul,
.lyu-article__body ol { margin: 0 0 22px 22px; padding: 0; }
.lyu-article__body li { margin: 0 0 8px; }
.lyu-article__body ul li::marker { color: var(--lyu-red); }
.lyu-article__body ol li::marker { color: var(--lyu-red); font-weight: 700; }

.lyu-article__body blockquote {
  margin: 28px 0;
  padding: 22px 26px 22px 22px;
  background: var(--lyu-red-soft);
  border-left: 4px solid var(--lyu-red);
  border-radius: 0 var(--lyu-radius) var(--lyu-radius) 0;
  font-family: var(--lyu-serif);
  font-size: 18px;
  line-height: 1.6;
  color: var(--lyu-charcoal);
  font-style: italic;
}
.lyu-article__body blockquote p { margin-bottom: 8px; }
.lyu-article__body blockquote p:last-child { margin-bottom: 0; }
.lyu-article__body blockquote cite {
  display: block;
  margin-top: 10px;
  font-size: 13px;
  font-style: normal;
  color: var(--lyu-muted);
  font-family: inherit;
}

.lyu-article__body img,
.lyu-article__body figure {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 28px auto;
  border-radius: var(--lyu-radius);
}
.lyu-article__body figure img { margin: 0; border-radius: var(--lyu-radius); }
.lyu-article__body figure figcaption {
  margin-top: 8px;
  font-size: 13px;
  text-align: center;
  color: var(--lyu-muted);
  font-style: italic;
}

.lyu-article__body code {
  background: var(--lyu-surface-2);
  color: var(--lyu-red-dark);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .9em;
  padding: 2px 6px;
  border-radius: 4px;
}
.lyu-article__body pre {
  background: var(--lyu-charcoal);
  color: #f0f0f0;
  padding: 20px;
  border-radius: var(--lyu-radius);
  overflow-x: auto;
  font-size: 14px;
  margin: 24px 0;
}
.lyu-article__body pre code { background: transparent; color: inherit; padding: 0; }

.lyu-article__body table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  margin: 24px 0;
}
.lyu-article__body th,
.lyu-article__body td {
  padding: 12px 14px;
  border: 1px solid var(--lyu-line);
  text-align: left;
}
.lyu-article__body th {
  background: var(--lyu-surface-2);
  font-weight: 700;
  color: var(--lyu-charcoal);
}
.lyu-article__body tr:nth-child(even) td { background: var(--lyu-surface); }

.lyu-article__body hr {
  border: 0;
  height: 1px;
  background: var(--lyu-line);
  margin: 36px 0;
}

/* ── Mobile TOC ── */
.lyu-toc--mobile {
  background: var(--lyu-card);
  border: 1px solid var(--lyu-line);
  border-radius: var(--lyu-radius);
  margin: 0 0 28px;
  overflow: hidden;
}
.lyu-toc--mobile > summary {
  list-style: none;
  cursor: pointer;
  padding: 14px 16px;
  font-weight: 700;
  font-size: 14px;
  color: var(--lyu-charcoal);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.lyu-toc--mobile > summary::-webkit-details-marker { display: none; }
.lyu-toc--mobile > summary::after {
  content: "+";
  font-size: 22px;
  font-weight: 400;
  color: var(--lyu-red);
  line-height: 1;
  transition: transform .2s;
}
.lyu-toc--mobile[open] > summary::after { transform: rotate(45deg); }
.lyu-toc__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  background: var(--lyu-red-soft);
  color: var(--lyu-red);
  font-size: 11px;
  font-weight: 800;
  border-radius: 999px;
  margin-left: 8px;
}
.lyu-toc--mobile .lyu-toc__list {
  margin: 0;
  padding: 0 18px 16px 32px;
  list-style: decimal;
}
.lyu-toc__item { margin: 6px 0; font-size: 14px; line-height: 1.5; }
.lyu-toc__item a {
  color: var(--lyu-text-2);
  text-decoration: none;
  transition: color var(--lyu-ease);
}
.lyu-toc__item a:hover { color: var(--lyu-red); }
.lyu-toc__item--h3 { padding-left: 18px; font-size: 13px; }
.lyu-toc__item.is-active > a { color: var(--lyu-red); font-weight: 700; }

/* ── In-content CTA ── */
.lyu-cta {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  margin: 40px auto;
  max-width: 720px;
  padding: 24px 22px;
  background: var(--lyu-card);
  border: 1px solid var(--lyu-line);
  border-radius: var(--lyu-radius-lg);
  box-shadow: var(--lyu-shadow-sm);
  transition: transform var(--lyu-ease), box-shadow var(--lyu-ease);
}
.lyu-cta:hover { transform: translateY(-2px); box-shadow: var(--lyu-shadow-md); }
.lyu-cta__icon {
  width: 48px; height: 48px;
  flex-shrink: 0;
  background: var(--lyu-grad);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  box-shadow: var(--lyu-shadow-cta);
}
.lyu-cta__body { flex: 1; }
.lyu-cta__title {
  font-family: var(--lyu-serif);
  font-size: 20px;
  font-weight: 700;
  color: var(--lyu-charcoal);
  margin: 0 0 6px;
}
.lyu-cta__text {
  font-size: 14px;
  line-height: 1.6;
  color: var(--lyu-text-2);
  margin: 0 0 14px;
}
.lyu-cta__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: var(--lyu-grad);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .4px;
  border-radius: 10px;
  text-decoration: none !important;
  box-shadow: var(--lyu-shadow-cta);
  transition: transform var(--lyu-ease);
}
.lyu-cta__btn:hover { transform: translateY(-1px); }

/* ── Share row (bottom of article) ── */
.lyu-share-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 32px auto;
  max-width: 720px;
  padding: 18px 0;
  border-top: 1px solid var(--lyu-line);
  border-bottom: 1px solid var(--lyu-line);
}
.lyu-share-row__label {
  font-size: 13px;
  font-weight: 700;
  color: var(--lyu-muted);
  margin-right: 4px;
}
.lyu-share-row__btn {
  display: inline-flex;
  align-items: center;
  padding: 7px 14px;
  border: 1.5px solid var(--lyu-line);
  border-radius: 999px;
  background: #fff;
  font-size: 12px;
  font-weight: 600;
  color: var(--lyu-charcoal);
  text-decoration: none !important;
  transition: all var(--lyu-ease);
}
.lyu-share-row__btn:hover {
  border-color: var(--lyu-red);
  color: var(--lyu-red);
  background: var(--lyu-red-soft);
}
.lyu-share-row__btn--copy { cursor: pointer; }
.lyu-share-row__btn.is-copied { background: var(--lyu-red); color: #fff; border-color: var(--lyu-red); }

/* ── Author card ── */
.lyu-author-card {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  max-width: 720px;
  margin: 32px auto;
  padding: 24px;
  background: var(--lyu-card);
  border: 1px solid var(--lyu-line);
  border-radius: var(--lyu-radius-lg);
}
.lyu-author-card__avatar {
  width: 80px; height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--lyu-red-soft);
  flex-shrink: 0;
}
.lyu-author-card__body { flex: 1; min-width: 0; }
.lyu-author-card__label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--lyu-muted);
  margin-bottom: 4px;
}
.lyu-author-card__name {
  display: block;
  font-family: var(--lyu-serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--lyu-charcoal);
  text-decoration: none;
  margin-bottom: 8px;
  line-height: 1.2;
}
.lyu-author-card__name:hover { color: var(--lyu-red); }
.lyu-author-card__bio {
  font-size: 14px;
  line-height: 1.6;
  color: var(--lyu-text-2);
  margin: 0 0 12px;
}
.lyu-author-card__link {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  color: var(--lyu-red);
  text-decoration: none;
}
.lyu-author-card__link:hover { text-decoration: underline; }

/* ── Comments ── */
.lyu-comments {
  max-width: 720px;
  margin: 40px auto 0;
  padding-top: 40px;
  border-top: 1px solid var(--lyu-line);
}
.lyu-comments .comments-title,
.lyu-comments .comment-reply-title {
  font-family: var(--lyu-serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--lyu-charcoal);
  margin: 0 0 18px;
}
.lyu-comments ol.comment-list {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
}
.lyu-comments ol.comment-list li.comment {
  padding: 18px 0;
  border-bottom: 1px solid var(--lyu-line);
}
.lyu-comments .comment-form input[type="text"],
.lyu-comments .comment-form input[type="email"],
.lyu-comments .comment-form input[type="url"],
.lyu-comments .comment-form textarea {
  width: 100%;
  border: 1.5px solid var(--lyu-line);
  border-radius: 10px;
  padding: 11px 14px;
  font-size: 14px;
  background: #fff;
}
.lyu-comments .comment-form input:focus,
.lyu-comments .comment-form textarea:focus {
  outline: 0;
  border-color: var(--lyu-red);
}
.lyu-comments .form-submit .submit {
  background: var(--lyu-grad) !important;
  color: #fff !important;
  border: 0 !important;
  border-radius: 10px !important;
  padding: 12px 22px !important;
  font-weight: 700 !important;
  font-size: 14px !important;
  cursor: pointer;
  box-shadow: var(--lyu-shadow-cta);
}

/* ── Related posts ── */
.lyu-related { padding: 48px 16px; background: var(--lyu-card); margin-top: 24px; }
.lyu-related__heading {
  font-family: var(--lyu-serif);
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 700;
  color: var(--lyu-charcoal);
  margin: 0 0 22px;
  letter-spacing: -0.4px;
}
.lyu-related__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
.lyu-related__card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--lyu-line);
  border-radius: var(--lyu-radius-lg);
  overflow: hidden;
  text-decoration: none !important;
  color: inherit;
  transition: transform var(--lyu-ease), box-shadow var(--lyu-ease), border-color var(--lyu-ease);
}
.lyu-related__card:hover {
  transform: translateY(-3px);
  box-shadow: var(--lyu-shadow-md);
  border-color: rgba(242,5,60,.25);
}
.lyu-related__card-image {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--lyu-surface-2);
  overflow: hidden;
}
.lyu-related__card-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s var(--lyu-ease);
}
.lyu-related__card:hover .lyu-related__card-image img { transform: scale(1.04); }
.lyu-related__card-placeholder {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 60px; color: var(--lyu-red-soft);
  background: var(--lyu-grad);
}
.lyu-related__card-body { padding: 18px 18px 20px; }
.lyu-related__card-cat {
  display: inline-block;
  margin-bottom: 8px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--lyu-red-soft);
  color: var(--lyu-red);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .8px;
  text-transform: uppercase;
}
.lyu-related__card-title {
  font-family: var(--lyu-serif);
  font-size: 18px;
  font-weight: 700;
  color: var(--lyu-charcoal);
  line-height: 1.3;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.lyu-related__card-meta {
  display: flex;
  gap: 6px;
  font-size: 12px;
  color: var(--lyu-muted);
}

/* ============================================================
   Tablet (>= 600px)
   ============================================================ */
@media (min-width: 600px) {
  .lyu-blog__wrap { padding: 0 24px; }
  .lyu-blog__bc { padding: 14px 0; font-size: 13px; }
  .lyu-article__hero { padding: 36px 0 40px; }
  .lyu-article__title { font-size: clamp(32px, 4.5vw, 46px); }
  .lyu-related__grid { grid-template-columns: repeat(2, 1fr); gap: 22px; }
  .lyu-related { padding: 56px 24px; }
}

/* ============================================================
   Desktop (>= 993px) — sidebar appears
   ============================================================ */
@media (min-width: 993px) {
  .lyu-article__hero { padding: 48px 0 44px; }
  .lyu-article__grid {
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 56px;
    padding-top: 48px;
    padding-bottom: 72px;
  }
  .lyu-article__sidebar {
    display: block;
    position: sticky;
    top: 88px;
    align-self: start;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    padding-right: 4px;
  }
  .lyu-article__sidebar::-webkit-scrollbar { width: 4px; }
  .lyu-article__sidebar::-webkit-scrollbar-thumb { background: var(--lyu-line); border-radius: 2px; }

  .lyu-toc--mobile { display: none; }

  .lyu-toc--desktop {
    background: var(--lyu-card);
    border: 1.5px solid var(--lyu-line);
    border-radius: var(--lyu-radius-lg);
    padding: 22px 20px;
    margin-bottom: 18px;
  }
  .lyu-toc__title {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--lyu-muted);
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--lyu-line);
  }
  .lyu-toc--desktop .lyu-toc__list {
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: toc-counter;
  }
  .lyu-toc--desktop .lyu-toc__item {
    counter-increment: toc-counter;
    position: relative;
    padding: 6px 0 6px 24px;
    margin: 0;
    font-size: 13.5px;
    line-height: 1.45;
    border-left: 2px solid transparent;
    margin-left: -2px;
    padding-left: 24px;
    transition: border-color var(--lyu-ease), background var(--lyu-ease);
  }
  .lyu-toc--desktop .lyu-toc__item::before {
    content: counter(toc-counter, decimal-leading-zero);
    position: absolute;
    left: 0;
    top: 7px;
    font-size: 11px;
    font-weight: 700;
    color: var(--lyu-muted);
    font-variant-numeric: tabular-nums;
  }
  .lyu-toc--desktop .lyu-toc__item--h3 {
    padding-left: 36px;
    font-size: 12.5px;
  }
  .lyu-toc--desktop .lyu-toc__item--h3::before { left: 12px; opacity: .7; }
  .lyu-toc--desktop .lyu-toc__item.is-active {
    border-left-color: var(--lyu-red);
  }
  .lyu-toc--desktop .lyu-toc__item.is-active::before { color: var(--lyu-red); }
  .lyu-toc--desktop .lyu-toc__item.is-active > a { color: var(--lyu-red); font-weight: 700; }

  .lyu-side-share {
    background: var(--lyu-card);
    border: 1.5px solid var(--lyu-line);
    border-radius: var(--lyu-radius-lg);
    padding: 18px 20px;
  }
  .lyu-side-share__title {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--lyu-muted);
    margin-bottom: 12px;
  }
  .lyu-side-share__btns { display: flex; gap: 8px; flex-wrap: wrap; }
  .lyu-side-share__btn {
    width: 38px; height: 38px;
    display: inline-flex;
    align-items: center; justify-content: center;
    border-radius: 50%;
    background: var(--lyu-surface-2);
    border: 1px solid var(--lyu-line);
    color: var(--lyu-charcoal);
    font-size: 11px;
    font-weight: 800;
    text-decoration: none !important;
    cursor: pointer;
    transition: all var(--lyu-ease);
  }
  .lyu-side-share__btn:hover {
    background: var(--lyu-red);
    color: #fff;
    border-color: var(--lyu-red);
    transform: translateY(-1px);
  }
  .lyu-side-share__btn.is-copied { background: var(--lyu-red); color: #fff; border-color: var(--lyu-red); }

  .lyu-related__grid { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .lyu-related { padding: 64px 24px; }
}

/* ============================================================
   Large desktop (>= 1200px)
   ============================================================ */
@media (min-width: 1200px) {
  .lyu-blog__wrap { padding: 0 24px; }
  .lyu-article__grid { gap: 72px; }
}

/* ============================================================
   MOBILE OVERFLOW SAFETY NET
   ----------------------------------------------------------------
   User-content blocks (custom stats cards, tables, iframes, embeds,
   плагіни типу author-eeat) часто містять inline width/min-width
   більше за viewport — це призводить до клиппінгу тексту на mobile.
   Тут ми примусово обмежуємо все, що йде в .lyu-article__body, до
   ширини контейнера + перетворюємо широкі таблиці в горизонтальний
   скрол замість обрізки.
   ============================================================ */
.lyu-blog,
.lyu-blog * { min-width: 0; }

.lyu-article__body {
  /* Завжди стискається до батька, не виходить за viewport */
  max-width: 100%;
  overflow-wrap: break-word;
  word-wrap: break-word;
  hyphens: auto;
}
.lyu-article__body > * {
  max-width: 100%;
}
.lyu-article__body img,
.lyu-article__body video,
.lyu-article__body iframe,
.lyu-article__body embed,
.lyu-article__body object {
  max-width: 100% !important;
  height: auto;
}
.lyu-article__body iframe { width: 100%; }

/* Таблиці: широкі — скролити, не клиппити */
.lyu-article__body table {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-collapse: collapse;
}

/* Pre/code: довгі рядки скролимо горизонтально */
.lyu-article__body pre {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  white-space: pre;
}

/* Довгі URL/слова — переносити на наступний рядок */
.lyu-article__body p,
.lyu-article__body li,
.lyu-article__body h1,
.lyu-article__body h2,
.lyu-article__body h3,
.lyu-article__body h4,
.lyu-article__body h5,
.lyu-article__body h6,
.lyu-article__body blockquote,
.lyu-article__body a {
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* Author EEAT box (плагін author-eeat-profile) часто містить занадто
   широкий внутрішній padding на mobile — підтискаємо. */
.lyu-article__body .author-eeat-box {
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
  box-sizing: border-box;
}
.lyu-article__body .author-eeat-box-inner {
  max-width: 100%;
  box-sizing: border-box;
}

/* ============================================================
   Mobile fine-tune
   ============================================================ */
@media (max-width: 720px) {
  /* На mobile прибираємо ліву смужку біля h2, бо вона виходить
     за padding контейнера і тиче в край екрану. */
  .lyu-article__body h2 { padding-left: 0; }
  .lyu-article__body h2::before {
    left: -10px;
    width: 3px;
  }
  /* Менший drop-cap — щоб не з'їдав ширину абзацу */
  .lyu-article__body p:first-of-type::first-letter {
    font-size: 3em;
    padding: 4px 10px 0 0;
  }
  /* Author EEAT box — компактний padding на mobile */
  .lyu-article__body .author-eeat-box {
    margin: 24px 0 28px;
  }
  .lyu-article__body .author-eeat-box-inner {
    padding: 24px 18px 20px;
    gap: 14px;
  }
}

@media (max-width: 480px) {
  .lyu-article__body { font-size: 16px; line-height: 1.72; }
  .lyu-article__body p:first-of-type::first-letter { font-size: 2.6em; padding: 2px 8px 0 0; }
  .lyu-article__body h2 { font-size: 22px; line-height: 1.25; }
  .lyu-article__body h3 { font-size: 18px; }
  .lyu-article__body h2::before { left: -8px; width: 3px; }
  .lyu-article__body blockquote { padding: 18px 18px 18px 16px; font-size: 16px; }
  .lyu-cta { flex-direction: column; }
  .lyu-cta__icon { width: 40px; height: 40px; }
  .lyu-author-card { flex-direction: column; align-items: center; text-align: center; }
}

/* Print */
@media print {
  .lyu-blog__progress,
  .lyu-blog__bc,
  .lyu-article__sidebar,
  .lyu-share-row,
  .lyu-side-share,
  .lyu-related,
  .lyu-cta { display: none !important; }
  .lyu-article__body { max-width: none; font-size: 12pt; }
}

/* Prefers reduced motion */
@media (prefers-reduced-motion: reduce) {
  .lyu-blog__progress span,
  .lyu-cta,
  .lyu-related__card,
  .lyu-related__card-image img { transition: none; }
}
