/**
 * Premium magazine/blog chrome — ThemeForest bestseller quality.
 * Loaded only on blog index, post archives, and single posts.
 * Light + dark tokens; RTL-safe logical properties; 44px targets.
 */

body.prowpsite-premium-blog {
  --psb-bg: #eef1f7;
  --psb-surface: #ffffff;
  --psb-text: #0f172a;
  --psb-muted: #334155;
  --psb-faint: #64748b;
  --psb-border: rgba(15, 23, 42, 0.1);
  --psb-accent: var(--primary, #0f766e);
  --psb-accent-fg: #ffffff;
  --psb-shadow: 0 14px 36px rgba(15, 23, 42, 0.1);
  --psb-shadow-sm: 0 6px 18px rgba(15, 23, 42, 0.07);
  --psb-radius: 1.25rem;
  --psb-radius-sm: 0.85rem;
  --psb-measure: 68ch;
  --psb-hero-min: clamp(16rem, 42vw, 26rem);
  --psb-hero-fg: #f8fafc;
  --psb-hero-muted: rgba(248, 250, 252, 0.86);
  --psb-sticky-top: 5.5rem;
  overflow-x: clip;
}

body.prowpsite-premium-blog.prowpsite-premium-blog-dark,
body.prowpsite-places-dark.prowpsite-premium-blog {
  --psb-bg: #070b14;
  --psb-surface: #101826;
  --psb-text: #f8fafc;
  --psb-muted: #cbd5e1;
  --psb-faint: #94a3b8;
  --psb-border: rgba(241, 245, 249, 0.12);
  --psb-accent: var(--primary-light, #a5b4fc);
  --psb-accent-fg: #0b1220;
  --psb-shadow: 0 18px 44px rgba(0, 0, 0, 0.42);
  --psb-shadow-sm: 0 8px 22px rgba(0, 0, 0, 0.35);
  --psb-hero-fg: #f8fafc;
  --psb-hero-muted: rgba(248, 250, 252, 0.88);
}

/* —— Page shell —— */
body.prowpsite-premium-blog #content,
body.prowpsite-premium-blog .site-content,
body.prowpsite-premium-blog .ast-container {
  background: var(--psb-bg);
  color: var(--psb-text);
}

body.prowpsite-premium-blog.single-post.ast-separate-container .ast-article-single,
body.prowpsite-premium-blog.single-post article.ast-article-single {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
  margin-block: 0;
}

body.prowpsite-premium-blog .ast-separate-container .ast-article-post,
body.prowpsite-premium-blog article.ast-article-post,
body.prowpsite-premium-blog .prowpsite-blog-card {
  background: var(--psb-surface);
  color: var(--psb-text);
  border: 1px solid var(--psb-border);
  border-radius: var(--psb-radius);
  box-shadow: var(--psb-shadow-sm);
  overflow: hidden;
  height: 100%;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

body.prowpsite-premium-blog .ast-separate-container .ast-article-post:hover,
body.prowpsite-premium-blog article.ast-article-post:hover,
body.prowpsite-premium-blog .prowpsite-blog-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--psb-shadow);
  border-color: color-mix(in srgb, var(--psb-accent) 35%, var(--psb-border));
}

/* —— Archive card grid —— */
body.prowpsite-premium-blog.blog .ast-row,
body.prowpsite-premium-blog.archive .ast-row,
body.prowpsite-premium-blog.search .ast-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.35rem;
}

@media (min-width: 768px) {
  body.prowpsite-premium-blog.blog .ast-row,
  body.prowpsite-premium-blog.archive .ast-row,
  body.prowpsite-premium-blog.search .ast-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  body.prowpsite-premium-blog.blog .ast-row,
  body.prowpsite-premium-blog.archive .ast-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  /* Featured sticky / first card spans full on large screens */
  body.prowpsite-premium-blog.blog .ast-row > .ast-col:first-child,
  body.prowpsite-premium-blog.blog .ast-row > .ast-grid-common-col:first-child {
    grid-column: 1 / -1;
  }

  body.prowpsite-premium-blog.blog .ast-row > .ast-col:first-child .ast-blog-featured-section,
  body.prowpsite-premium-blog.blog .ast-row > .ast-grid-common-col:first-child .ast-blog-featured-section,
  body.prowpsite-premium-blog.blog .ast-row > .ast-col:first-child .post-thumb,
  body.prowpsite-premium-blog.blog .ast-row > .ast-grid-common-col:first-child .post-thumb {
    aspect-ratio: 21 / 9;
  }

  body.prowpsite-premium-blog.blog .ast-row > .ast-col:first-child .entry-title,
  body.prowpsite-premium-blog.blog .ast-row > .ast-grid-common-col:first-child .entry-title {
    font-size: clamp(1.45rem, 2.4vw, 2rem);
  }
}

body.prowpsite-premium-blog .ast-row > .ast-col,
body.prowpsite-premium-blog .ast-row > .ast-grid-common-col,
body.prowpsite-premium-blog .ast-row > .ast-width-md-6,
body.prowpsite-premium-blog .ast-row > .ast-width-md-4 {
  width: 100% !important;
  max-width: none !important;
  float: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.prowpsite-premium-blog .ast-blog-featured-section,
body.prowpsite-premium-blog .post-thumb,
body.prowpsite-premium-blog .prowpsite-blog-card-thumb {
  position: relative;
  display: none;
  overflow: hidden;
}

body.prowpsite-premium-blog .ast-blog-featured-section:has(img[src^="http"]),
body.prowpsite-premium-blog .post-thumb:has(img[src^="http"]),
body.prowpsite-premium-blog .prowpsite-blog-card-thumb:has(img[src^="http"]) {
  display: block;
  aspect-ratio: 16 / 10;
  background: color-mix(in srgb, var(--psb-accent) 12%, var(--psb-surface));
}

body.prowpsite-premium-blog .ast-blog-featured-section:empty,
body.prowpsite-premium-blog .post-thumb:empty,
body.prowpsite-premium-blog .ast-blog-featured-section:not(:has(img)),
body.prowpsite-premium-blog .post-thumb:not(:has(img)),
body.prowpsite-premium-blog .prowpsite-blog-card-thumb:not(:has(img)),
body.prowpsite-premium-blog .ast-blog-featured-section:has(img[src^="data:"]),
body.prowpsite-premium-blog .post-thumb:has(img[src^="data:"]),
body.prowpsite-premium-blog .prowpsite-blog-card-thumb:has(img[src^="data:"]),
body.prowpsite-premium-blog .ast-blog-featured-section:has(img[width="1"]),
body.prowpsite-premium-blog .post-thumb:has(img[width="1"]),
body.prowpsite-premium-blog .prowpsite-blog-card-thumb:has(img[width="1"]) {
  display: none !important;
  aspect-ratio: auto;
  min-height: 0;
  height: 0;
  margin: 0;
  padding: 0;
  background: transparent;
  overflow: hidden;
}

body.prowpsite-premium-blog .ast-blog-featured-section img,
body.prowpsite-premium-blog .post-thumb img,
body.prowpsite-premium-blog .prowpsite-blog-card-thumb img,
body.prowpsite-premium-blog .prowpsite-blog-related__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

body.prowpsite-premium-blog article.ast-article-post:hover .post-thumb img,
body.prowpsite-premium-blog .prowpsite-blog-related__card:hover .prowpsite-blog-related__media img {
  transform: scale(1.04);
}

body.prowpsite-premium-blog .entry-header,
body.prowpsite-premium-blog .blog-entry-content,
body.prowpsite-premium-blog .entry-content,
body.prowpsite-premium-blog .prowpsite-blog-card-body {
  padding: 1.15rem 1.25rem 1.35rem;
}

body.prowpsite-premium-blog .entry-title,
body.prowpsite-premium-blog .prowpsite-blog-card-title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.08rem, 2vw, 1.38rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.35;
  color: var(--psb-text);
}

body.prowpsite-premium-blog .entry-title a,
body.prowpsite-premium-blog .prowpsite-blog-card-title a {
  color: inherit;
  text-decoration: none;
}

body.prowpsite-premium-blog .entry-title a:hover,
body.prowpsite-premium-blog .prowpsite-blog-card-title a:hover {
  color: var(--psb-accent);
}

body.prowpsite-premium-blog .entry-meta,
body.prowpsite-premium-blog .prowpsite-blog-card-date,
body.prowpsite-premium-blog .posted-on,
body.prowpsite-premium-blog .cat-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.75rem;
  color: var(--psb-faint);
  font-size: 0.8125rem;
  font-weight: 600;
}

body.prowpsite-premium-blog .entry-meta a,
body.prowpsite-premium-blog .cat-links a,
body.prowpsite-premium-blog .prowpsite-blog-card-category {
  color: var(--psb-accent);
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

body.prowpsite-premium-blog .prowpsite-blog-card-category {
  position: absolute;
  inset-block-start: 0.7rem;
  inset-inline-start: 0.7rem;
  z-index: 2;
  min-height: 32px;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--psb-surface) 92%, transparent);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.14);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* —— Single: reading measure —— */
body.prowpsite-premium-blog.single-post .site-content .ast-container,
body.prowpsite-premium-blog.single-post #primary {
  max-width: 56rem;
  margin-inline: auto;
}

body.prowpsite-premium-blog.single-post #content > .ast-container {
  padding-inline: 0;
  max-width: none;
}

/* —— Magazine hero —— */
body.prowpsite-premium-blog .prowpsite-blog-hero {
  position: relative;
  isolation: isolate;
  min-height: var(--psb-hero-min);
  margin: 0 0 1.75rem;
  border-radius: 0;
  overflow: hidden;
  contain: paint;
  color: var(--psb-hero-fg);
  background: linear-gradient(135deg, #0b1220 0%, #134e4a 48%, #0f766e 100%);
  max-width: 100%;
}

@media (min-width: 900px) {
  body.prowpsite-premium-blog.single-post.ast-separate-container .site-content {
    padding-block-start: 0;
  }

  /* Full-bleed without 100vw scrollbar overflow (esp. RTL) */
  body.prowpsite-premium-blog .prowpsite-blog-hero {
    width: 100%;
    max-width: 100%;
    margin-inline: 0;
    border-radius: 0;
  }

  body.prowpsite-premium-blog.single-post .site-content,
  body.prowpsite-premium-blog.single-post #content,
  body.prowpsite-premium-blog.single-post #page,
  body.prowpsite-premium-blog.single-post .site {
    overflow-x: clip;
    max-width: 100%;
  }
}

body.prowpsite-premium-blog .prowpsite-blog-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

body.prowpsite-premium-blog .prowpsite-blog-hero__img {
  width: 100%;
  max-width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  /* No scale() — prevents scrollWidth expansion beyond viewport */
}

body.prowpsite-premium-blog .prowpsite-blog-hero__shade,
body.prowpsite-premium-blog .prowpsite-blog-hero__bg--plain {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7, 11, 20, 0.35) 0%, rgba(7, 11, 20, 0.72) 55%, rgba(7, 11, 20, 0.88) 100%),
    linear-gradient(90deg, rgba(15, 118, 110, 0.35), rgba(15, 23, 42, 0.25));
}

body.prowpsite-premium-blog .prowpsite-blog-hero__bg--plain {
  background: linear-gradient(135deg, #0b1220 0%, #134e4a 48%, #0f766e 100%);
}

body.prowpsite-premium-blog .prowpsite-blog-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 48rem;
  margin-inline: auto;
  padding: clamp(2rem, 6vw, 4.25rem) clamp(1.1rem, 4vw, 2rem) clamp(2.25rem, 5vw, 3.5rem);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  justify-content: flex-end;
  min-height: var(--psb-hero-min);
}

body.prowpsite-premium-blog .prowpsite-blog-hero__crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.55rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--psb-hero-muted);
}

body.prowpsite-premium-blog .prowpsite-blog-hero__crumbs a {
  color: var(--psb-hero-fg);
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  opacity: 0.92;
}

body.prowpsite-premium-blog .prowpsite-blog-hero__crumbs a:hover,
body.prowpsite-premium-blog .prowpsite-blog-hero__crumbs a:focus-visible {
  text-decoration: underline;
  opacity: 1;
}

body.prowpsite-premium-blog .prowpsite-blog-hero__sep {
  opacity: 0.55;
}

body.prowpsite-premium-blog .prowpsite-blog-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

body.prowpsite-premium-blog .prowpsite-blog-hero__chip {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0.25rem 0.8rem;
  border-radius: 999px;
  background: rgba(248, 250, 252, 0.14);
  border: 1px solid rgba(248, 250, 252, 0.22);
  color: var(--psb-hero-fg);
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  backdrop-filter: blur(8px);
}

body.prowpsite-premium-blog .prowpsite-blog-hero__chip--cat {
  background: color-mix(in srgb, var(--psb-accent) 78%, #0b1220);
  border-color: transparent;
  color: var(--psb-accent-fg);
}

body.prowpsite-premium-blog a.prowpsite-blog-hero__chip {
  min-height: 44px;
}

body.prowpsite-premium-blog .prowpsite-blog-hero__title {
  margin: 0;
  font-size: clamp(1.75rem, 4.2vw, 2.85rem);
  line-height: 1.22;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--psb-hero-fg);
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
  max-width: 18ch;
}

[dir="rtl"] body.prowpsite-premium-blog .prowpsite-blog-hero__title {
  max-width: none;
}

/* Hide Astra duplicate title / featured when our hero is present */
body.prowpsite-blog-has-hero.single-post .entry-header .entry-title,
body.prowpsite-blog-has-hero.single-post .ast-single-post-order .entry-header .entry-title,
body.prowpsite-blog-has-hero.single-post .post-thumb,
body.prowpsite-blog-has-hero.single-post .ast-single-post-featured,
body.prowpsite-blog-has-hero.single-post .ast-featured-section {
  display: none !important;
}

body.prowpsite-blog-has-hero.single-post .entry-header {
  padding: 0;
  margin: 0;
  border: 0;
}

body.prowpsite-blog-has-hero.single-post .entry-meta {
  display: none;
}

/* Never show author byline on premium blog singles (hero or theme meta). */
body.prowpsite-premium-blog.single-post .prowpsite-blog-hero__chip--author,
body.prowpsite-premium-blog.single-post .byline,
body.prowpsite-premium-blog.single-post .author,
body.prowpsite-premium-blog.single-post .ast-author-meta,
body.prowpsite-premium-blog.single-post .posted-by,
body.prowpsite-premium-blog.single-post .entry-author,
body.prowpsite-premium-blog.single-post .ast-single-author {
  display: none !important;
}

/* Body article surface under hero — white / smoke, not gray ocean */
body.prowpsite-premium-blog.single-post {
  --psb-bg: #fafafa;
  --psb-content-bg: #ffffff;
  --psb-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
  --psb-shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.04);
}

body.prowpsite-premium-blog.single-post.prowpsite-premium-blog-dark,
body.prowpsite-places-dark.prowpsite-premium-blog.single-post {
  --psb-bg: #0b1220;
  --psb-content-bg: #101826;
}

body.prowpsite-premium-blog.single-post #content,
body.prowpsite-premium-blog.single-post .site-content,
body.prowpsite-premium-blog.single-post .ast-container {
  background: var(--psb-bg);
}

body.prowpsite-premium-blog.single-post .entry-content {
  max-width: var(--psb-measure);
  margin-inline: auto;
  padding: 1.75rem clamp(1rem, 3vw, 1.5rem) 2.5rem;
  font-size: 1.125rem;
  line-height: 1.85;
  color: var(--psb-text);
  background: var(--psb-content-bg, #fff);
  border: 1px solid var(--psb-border);
  border-radius: var(--psb-radius-sm);
  box-shadow: none;
}

body.prowpsite-premium-blog.single-post .entry-content > p {
  margin-block: 0 1.15rem;
}

body.prowpsite-premium-blog.single-post .entry-content h2 {
  margin-block: 2.1rem 0.85rem;
  font-size: clamp(1.35rem, 2.4vw, 1.7rem);
  line-height: 1.3;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--psb-text);
  padding-block-end: 0.45rem;
  border-block-end: 2px solid color-mix(in srgb, var(--psb-accent) 35%, var(--psb-border));
}

body.prowpsite-premium-blog.single-post .entry-content h3 {
  margin-block: 1.65rem 0.65rem;
  font-size: clamp(1.15rem, 2vw, 1.35rem);
  line-height: 1.35;
  font-weight: 750;
  color: var(--psb-text);
}

body.prowpsite-premium-blog.single-post .entry-content h4 {
  margin-block: 1.35rem 0.5rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--psb-muted);
}

body.prowpsite-premium-blog.single-post .entry-content ul,
body.prowpsite-premium-blog.single-post .entry-content ol {
  margin-block: 0.85rem 1.25rem;
  padding-inline-start: 1.25rem;
}

body.prowpsite-premium-blog.single-post .entry-content li {
  margin-block: 0.45rem;
  padding-inline-start: 0.25rem;
  line-height: 1.75;
}

body.prowpsite-premium-blog.single-post .entry-content ul > li::marker {
  color: var(--psb-accent);
  font-weight: 800;
}

body.prowpsite-premium-blog.single-post .entry-content a {
  color: var(--psb-accent);
  text-underline-offset: 0.18em;
}

body.prowpsite-premium-blog.single-post .entry-content a:hover {
  text-decoration-thickness: 2px;
}

body.prowpsite-premium-blog.single-post .entry-content blockquote {
  margin-block: 1.5rem;
  padding: 1rem 1.15rem;
  border-inline-start: 4px solid var(--psb-accent);
  background: color-mix(in srgb, var(--psb-accent) 8%, var(--psb-bg));
  border-radius: 0 var(--psb-radius-sm) var(--psb-radius-sm) 0;
  color: var(--psb-muted);
  font-size: 1.05rem;
}

[dir="rtl"] body.prowpsite-premium-blog.single-post .entry-content blockquote {
  border-radius: var(--psb-radius-sm) 0 0 var(--psb-radius-sm);
}

body.prowpsite-premium-blog.single-post .entry-content figure,
body.prowpsite-premium-blog.single-post .entry-content .wp-block-image,
body.prowpsite-premium-blog.single-post .entry-content p > img,
body.prowpsite-premium-blog.single-post .entry-content > img {
  margin-block: 1.65rem;
  margin-inline: auto;
  max-width: 100%;
}

body.prowpsite-premium-blog.single-post .entry-content img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 0.5rem;
  box-shadow: none;
  border: 1px solid color-mix(in srgb, var(--psb-border) 80%, transparent);
}

body.prowpsite-premium-blog.single-post .entry-content figcaption,
body.prowpsite-premium-blog.single-post .entry-content .wp-element-caption {
  color: var(--psb-faint);
  font-size: 0.875rem;
  text-align: center;
  margin-block-start: 0.55rem;
}

html[dir="ltr"] body.prowpsite-premium-blog.single-post .entry-content > p:first-of-type::first-letter {
  float: left;
  font-size: 3.1rem;
  font-weight: 800;
  line-height: 0.85;
  padding-inline-end: 0.35rem;
  color: var(--psb-accent);
}

[dir="rtl"] body.prowpsite-premium-blog.single-post .entry-content > p:first-of-type::first-letter {
  float: none;
  font-size: inherit;
  padding: 0;
  font-weight: inherit;
  color: inherit;
}

/* Subtle rhythm: alternate section feel via adjacent headings */
body.prowpsite-premium-blog.single-post .entry-content h2:nth-of-type(even) {
  background: linear-gradient(
    90deg,
    color-mix(in srgb, var(--psb-accent) 10%, transparent),
    transparent 70%
  );
  padding: 0.55rem 0.75rem;
  margin-inline: -0.75rem;
  border-radius: var(--psb-radius-sm);
  border-block-end: 0;
}

/* Breadcrumbs (non-hero) */
body.prowpsite-premium-blog .ast-breadcrumbs-wrapper,
body.prowpsite-premium-blog .rank-math-breadcrumb,
body.prowpsite-premium-blog .yoast-breadcrumbs,
body.prowpsite-premium-blog .breadcrumb {
  color: var(--psb-muted);
  font-size: 0.875rem;
  margin-block-end: 1rem;
}

body.prowpsite-premium-blog .ast-breadcrumbs-wrapper a,
body.prowpsite-premium-blog .breadcrumb a {
  color: var(--psb-accent);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

/* Hide default Astra page header title when hero present */
body.prowpsite-blog-has-hero .ast-single-entry-banner,
body.prowpsite-blog-has-hero .ast-archive-entry-banner,
body.prowpsite-blog-has-hero .entry-header.ast-no-thumbnail .entry-title:first-child {
  /* keep structure */
}

body.prowpsite-blog-has-hero.single-post .ast-single-entry-banner,
body.prowpsite-blog-has-hero.single-post header.entry-header:not(.prowpsite-blog-hero) .entry-title {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Pagination / Astra nav */
body.prowpsite-premium-blog .post-navigation,
body.prowpsite-premium-blog .nav-links,
body.prowpsite-premium-blog .ast-pagination,
body.prowpsite-premium-blog .pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-block: 1.75rem;
  justify-content: center;
}

body.prowpsite-premium-blog .post-navigation a,
body.prowpsite-premium-blog .nav-links a,
body.prowpsite-premium-blog .ast-pagination a,
body.prowpsite-premium-blog .ast-pagination .page-link,
body.prowpsite-premium-blog .pagination a,
body.prowpsite-premium-blog .page-numbers {
  min-height: 44px;
  min-width: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-inline: 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--psb-border);
  background: var(--psb-surface);
  color: var(--psb-text);
  text-decoration: none;
  font-weight: 700;
}

body.prowpsite-premium-blog .page-numbers.current,
body.prowpsite-premium-blog .ast-pagination .page-link.current {
  background: var(--psb-accent);
  color: var(--psb-accent-fg);
  border-color: transparent;
}

/* Custom next/prev */
body.prowpsite-premium-blog .prowpsite-blog-postnav {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
  margin: 1.75rem auto 0.5rem;
  max-width: var(--psb-measure);
  padding-inline: clamp(0.25rem, 2vw, 0.5rem);
}

@media (min-width: 720px) {
  body.prowpsite-premium-blog .prowpsite-blog-postnav {
    grid-template-columns: 1fr 1fr;
  }
}

body.prowpsite-premium-blog .prowpsite-blog-postnav__link {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-height: 44px;
  padding: 1rem 1.15rem;
  border-radius: var(--psb-radius-sm);
  border: 1px solid var(--psb-border);
  background: var(--psb-surface);
  color: var(--psb-text);
  text-decoration: none;
  box-shadow: var(--psb-shadow-sm);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

body.prowpsite-premium-blog .prowpsite-blog-postnav__link:hover {
  border-color: color-mix(in srgb, var(--psb-accent) 40%, var(--psb-border));
  transform: translateY(-2px);
}

body.prowpsite-premium-blog .prowpsite-blog-postnav__link--next {
  text-align: end;
}

body.prowpsite-premium-blog .prowpsite-blog-postnav__label {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--psb-accent);
}

body.prowpsite-premium-blog .prowpsite-blog-postnav__title {
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.4;
}

body.prowpsite-premium-blog .prowpsite-blog-postnav__link--empty {
  display: none;
}

@media (min-width: 720px) {
  body.prowpsite-premium-blog .prowpsite-blog-postnav__link--empty {
    display: block;
    visibility: hidden;
    pointer-events: none;
    border: 0;
    background: transparent;
    box-shadow: none;
  }
}

/* Related cards */
body.prowpsite-premium-blog .prowpsite-blog-related {
  margin: 2.25rem auto 1.5rem;
  max-width: 56rem;
  padding: 1.5rem clamp(1rem, 3vw, 1.35rem);
  border-block-start: 0;
  background: transparent;
}

body.prowpsite-premium-blog .prowpsite-blog-related__title,
body.prowpsite-premium-blog .ast-related-posts-title {
  font-size: 1.35rem;
  font-weight: 800;
  margin: 0 0 1.1rem;
  color: var(--psb-text);
}

body.prowpsite-premium-blog .prowpsite-blog-related__grid,
body.prowpsite-premium-blog .ast-related-posts-wrapper {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 768px) {
  body.prowpsite-premium-blog .prowpsite-blog-related__grid,
  body.prowpsite-premium-blog .ast-related-posts-wrapper {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

body.prowpsite-premium-blog .prowpsite-blog-related__card,
body.prowpsite-premium-blog .ast-related-post {
  background: var(--psb-surface);
  border: 1px solid var(--psb-border);
  border-radius: 1rem;
  overflow: hidden;
  min-width: 0;
  box-shadow: var(--psb-shadow-sm);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

body.prowpsite-premium-blog .prowpsite-blog-related__card:hover {
  transform: translateY(-3px);
  box-shadow: var(--psb-shadow);
}

body.prowpsite-premium-blog .prowpsite-blog-related__media,
body.prowpsite-premium-blog .ast-related-post .post-thumb {
  display: block;
  aspect-ratio: 16 / 10;
  background: color-mix(in srgb, var(--psb-accent) 10%, var(--psb-surface));
  overflow: hidden;
}

body.prowpsite-premium-blog .prowpsite-blog-related__placeholder {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 8rem;
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--psb-accent) 18%, var(--psb-surface)),
    var(--psb-surface)
  );
}

body.prowpsite-premium-blog .prowpsite-blog-related__body {
  padding: 0.9rem 1rem 1.1rem;
}

body.prowpsite-premium-blog .prowpsite-blog-related__date {
  color: var(--psb-faint);
  font-size: 0.75rem;
  font-weight: 700;
}

body.prowpsite-premium-blog .prowpsite-blog-related__name {
  margin: 0.3rem 0 0;
  font-size: 1rem;
  line-height: 1.4;
}

body.prowpsite-premium-blog .prowpsite-blog-related__name a {
  color: var(--psb-text);
  text-decoration: none;
}

body.prowpsite-premium-blog .prowpsite-blog-related__name a:hover {
  color: var(--psb-accent);
}

/* Comments + share */
body.prowpsite-premium-blog #comments,
body.prowpsite-premium-blog .comments-area,
body.prowpsite-premium-blog .ast-comment-list {
  background: var(--psb-surface);
  border: 1px solid var(--psb-border);
  border-radius: var(--psb-radius);
  padding: 1.25rem;
  color: var(--psb-text);
  max-width: var(--psb-measure);
  margin-inline: auto;
}

body.prowpsite-premium-blog .comment-reply-link,
body.prowpsite-premium-blog .submit,
body.prowpsite-premium-blog .ast-comment-form #submit,
body.prowpsite-premium-blog .prowpsite-blog-card-readmore a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-inline: 1rem;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
}

body.prowpsite-premium-blog .prowpsite-blog-card-readmore a {
  color: var(--psb-accent);
}

/* Premium share rail owns social UI on singles — hide theme/plugin duplicates */
body.prowpsite-premium-blog.single-post.psb-share-on .ast-post-social,
body.prowpsite-premium-blog.single-post.psb-share-on .sharedaddy,
body.prowpsite-premium-blog.single-post.psb-share-on .entry-social,
body.prowpsite-premium-blog.single-post.psb-share-on .heateor_sss_sharing_container,
body.prowpsite-premium-blog.single-post.psb-share-on .share-box-area,
body.prowpsite-premium-blog.single-post.psb-share-on .post-share,
body.prowpsite-premium-blog.single-post.psb-share-on .post_share_div,
body.prowpsite-premium-blog.single-post.psb-share-on .share-links:not(.prowpsite-blog-share__links),
body.prowpsite-premium-blog.single-post.psb-share-on .lightShare {
  display: none !important;
}

/* Competing theme TOC (fimsr toc-container / Easy TOC / Rank Math) */
body.prowpsite-premium-blog.single-post.psb-toc-on .toc-container,
body.prowpsite-premium-blog.single-post.psb-toc-on .ez-toc,
body.prowpsite-premium-blog.single-post.psb-toc-on .ez-toc-container,
body.prowpsite-premium-blog.single-post.psb-toc-on .rank-math-toc,
body.prowpsite-premium-blog.single-post.psb-toc-on .wp-block-table-of-contents,
body.prowpsite-premium-blog.single-post.psb-toc-on .aioseo-toc {
  display: none !important;
}

@media (max-width: 767px) {
  body.prowpsite-premium-blog .ast-row,
  body.prowpsite-premium-blog .prowpsite-blog-related__grid,
  body.prowpsite-premium-blog .ast-related-posts-wrapper {
    grid-template-columns: 1fr;
  }

  body.prowpsite-premium-blog .entry-header,
  body.prowpsite-premium-blog .entry-content {
    padding-inline: 1rem;
  }

  body.prowpsite-premium-blog .prowpsite-blog-hero__inner {
    padding-inline: 1rem;
  }

  body.prowpsite-premium-blog.single-post .entry-content {
    border-radius: var(--psb-radius-sm);
    margin-inline: 0.65rem;
    max-width: calc(100% - 1.3rem);
  }
}

/* Dark widgets */
body.prowpsite-premium-blog-dark #secondary,
body.prowpsite-premium-blog-dark .widget-area,
body.prowpsite-places-dark.prowpsite-premium-blog .widget,
body.prowpsite-premium-blog-dark .widget,
body.prowpsite-premium-blog-dark .sidebar-main .widget {
  background: var(--psb-surface);
  color: var(--psb-text);
  border: 1px solid var(--psb-border);
  border-radius: var(--psb-radius);
  box-shadow: var(--psb-shadow);
}

body.prowpsite-premium-blog-dark .widget a,
body.prowpsite-premium-blog-dark .widget-title,
body.prowpsite-premium-blog-dark .widget li {
  color: var(--psb-text);
}

/* Focus visibility (WCAG) */
body.prowpsite-premium-blog a:focus-visible,
body.prowpsite-premium-blog button:focus-visible {
  outline: 2px solid var(--psb-accent);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  body.prowpsite-premium-blog *,
  body.prowpsite-premium-blog *::before,
  body.prowpsite-premium-blog *::after {
    transition: none !important;
    animation: none !important;
  }
}

/* —— Post single: shell / presets / density / TOC / share —— */
body.prowpsite-premium-blog.single-post.psb-preset-wide-editorial {
  --psb-measure: min(48rem, 100%);
  --psb-shell-max: min(74rem, 100%);
}

body.prowpsite-premium-blog.single-post.psb-preset-classic-narrow {
  --psb-measure: min(42rem, 100%);
  --psb-shell-max: min(58rem, 100%);
}

body.prowpsite-premium-blog.single-post.psb-preset-magazine-hero {
  --psb-measure: min(46rem, 100%);
  --psb-shell-max: min(70rem, 100%);
  --psb-hero-min: clamp(18rem, 48vw, 30rem);
}

body.prowpsite-premium-blog.single-post.psb-preset-card-surface {
  --psb-measure: min(44rem, 100%);
  --psb-shell-max: min(62rem, 100%);
}

body.prowpsite-premium-blog.single-post.psb-density-compact {
  --psb-shell-gap: 0.85rem;
  --psb-content-pad: 1rem 1.1rem 1.35rem;
  --psb-h2-mt: 1.25rem;
}

body.prowpsite-premium-blog.single-post.psb-density-comfortable {
  --psb-shell-gap: 1.35rem;
  --psb-content-pad: 1.5rem clamp(1rem, 2.5vw, 1.4rem) 2.1rem;
  --psb-h2-mt: 1.85rem;
}

body.prowpsite-premium-blog.single-post.psb-preset-wide-editorial .site-content .ast-container,
body.prowpsite-premium-blog.single-post.psb-preset-wide-editorial #primary,
body.prowpsite-premium-blog.single-post.psb-preset-magazine-hero .site-content .ast-container,
body.prowpsite-premium-blog.single-post.psb-preset-magazine-hero #primary,
body.prowpsite-premium-blog.single-post.psb-sidebar-end .site-content .ast-container,
body.prowpsite-premium-blog.single-post.psb-sidebar-start .site-content .ast-container {
  max-width: var(--psb-shell-max, min(74rem, 100%));
  margin-inline: auto;
}

body.prowpsite-premium-blog.single-post.psb-preset-wide-editorial .entry-content,
body.prowpsite-premium-blog.single-post.psb-preset-magazine-hero .entry-content {
  max-width: none;
  background: var(--psb-content-bg, #fff);
  border: 0;
  box-shadow: none;
  border-radius: 0;
  padding: var(--psb-content-pad, 1rem 1.1rem 1.35rem);
  margin-inline: 0;
}

body.prowpsite-premium-blog.single-post.psb-preset-card-surface .entry-content,
body.prowpsite-premium-blog.single-post.psb-preset-classic-narrow .entry-content {
  max-width: none;
  margin-inline: 0;
  background: var(--psb-content-bg, #fff);
  border: 1px solid var(--psb-border);
  border-radius: var(--psb-radius-sm);
  box-shadow: none;
  padding: var(--psb-content-pad, 1.5rem clamp(1rem, 2.5vw, 1.4rem) 2.1rem);
}

body.prowpsite-premium-blog.single-post.psb-density-compact .entry-content h2 {
  margin-block: var(--psb-h2-mt, 1.25rem) 0.55rem;
}

body.prowpsite-premium-blog .prowpsite-blog-shell {
  display: grid;
  gap: var(--psb-shell-gap, 0.85rem);
  width: 100%;
  max-width: var(--psb-shell-max, min(74rem, 100%));
  margin-inline: auto;
  align-items: start;
  background: var(--psb-content-bg, #fff);
  border-radius: var(--psb-radius-sm);
  padding-block: 0.35rem 0.75rem;
}

body.prowpsite-premium-blog .prowpsite-blog-shell__content {
  min-width: 0;
  max-width: 100%;
}

body.prowpsite-premium-blog .prowpsite-blog-aside {
  min-width: 0;
}

/* Mobile TOC spans full shell width */
body.prowpsite-premium-blog .prowpsite-blog-toc--mobile,
body.prowpsite-premium-blog .prowpsite-blog-share {
  grid-column: 1 / -1;
}

@media (min-width: 1024px) {
  body.prowpsite-premium-blog.single-post.psb-sidebar-end .prowpsite-blog-shell {
    grid-template-columns: minmax(0, 1fr) minmax(13.5rem, 16.5rem);
    column-gap: 1.25rem;
    row-gap: var(--psb-shell-gap, 0.85rem);
  }

  body.prowpsite-premium-blog.single-post.psb-sidebar-start .prowpsite-blog-shell {
    grid-template-columns: minmax(13.5rem, 16.5rem) minmax(0, 1fr);
    column-gap: 1.25rem;
    row-gap: var(--psb-shell-gap, 0.85rem);
  }

  body.prowpsite-premium-blog.single-post.psb-sidebar-start .prowpsite-blog-aside {
    order: -1;
  }

  body.prowpsite-premium-blog.single-post.psb-share-on.psb-sidebar-end .prowpsite-blog-shell,
  body.prowpsite-premium-blog.single-post.psb-share-on.psb-sidebar-none .prowpsite-blog-shell {
    grid-template-columns: 2.85rem minmax(0, 1fr) minmax(13.5rem, 16.5rem);
  }

  body.prowpsite-premium-blog.single-post.psb-share-on.psb-sidebar-none .prowpsite-blog-shell {
    grid-template-columns: 2.85rem minmax(0, 1fr);
  }

  body.prowpsite-premium-blog.single-post.psb-share-on.psb-sidebar-start .prowpsite-blog-shell {
    grid-template-columns: minmax(13.5rem, 16.5rem) 2.85rem minmax(0, 1fr);
  }

  body.prowpsite-premium-blog.single-post.psb-share-on .prowpsite-blog-share {
    grid-column: auto;
    position: sticky;
    top: 5.5rem;
    align-self: start;
    flex-direction: column;
    margin-block: 0;
    z-index: 2;
  }

  body.prowpsite-premium-blog.single-post.psb-share-on.psb-sidebar-end .prowpsite-blog-share,
  body.prowpsite-premium-blog.single-post.psb-share-on.psb-sidebar-none .prowpsite-blog-share {
    order: -1;
  }

  body.prowpsite-premium-blog.single-post.psb-share-on.psb-sidebar-start .prowpsite-blog-share {
    order: 0;
  }

  body.prowpsite-premium-blog.single-post.psb-share-on .prowpsite-blog-share__links {
    flex-direction: column;
    align-items: center;
  }

  body.prowpsite-premium-blog.single-post.psb-sidebar-end .prowpsite-blog-toc--mobile,
  body.prowpsite-premium-blog.single-post.psb-sidebar-start .prowpsite-blog-toc--mobile {
    display: none;
  }

  body.prowpsite-premium-blog.single-post.psb-sidebar-none .prowpsite-blog-aside {
    display: none;
  }

  body.prowpsite-premium-blog.single-post.psb-sidebar-none:not(.psb-share-on) .prowpsite-blog-shell {
    grid-template-columns: minmax(0, 1fr);
  }

  /* Sidebar sticky within article shell — desktop only; scrollable TOC inside */
  body.prowpsite-premium-blog.single-post.psb-sidebar-sticky .prowpsite-blog-aside {
    position: sticky;
    top: var(--psb-sticky-top, 5.5rem);
    align-self: start;
    max-height: calc(100vh - var(--psb-sticky-top, 5.5rem) - 1rem);
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }

  body.prowpsite-premium-blog.single-post.psb-sidebar-sticky .prowpsite-blog-aside .prowpsite-blog-toc--aside {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    max-height: 100%;
  }
}

@media (max-width: 1023px) {
  body.prowpsite-premium-blog .prowpsite-blog-shell {
    grid-template-columns: minmax(0, 1fr);
  }

  body.prowpsite-premium-blog .prowpsite-blog-aside {
    order: 3;
    position: static;
  }

  body.prowpsite-premium-blog .prowpsite-blog-toc--aside {
    display: none;
  }

  body.prowpsite-premium-blog .prowpsite-blog-share {
    order: 1;
  }

  body.prowpsite-premium-blog .prowpsite-blog-shell__content {
    order: 2;
  }
}

body.prowpsite-premium-blog.single-post .entry-content h2[id],
body.prowpsite-premium-blog.single-post .entry-content h3[id],
body.prowpsite-premium-blog.single-post .prowpsite-blog-shell__content h2[id],
body.prowpsite-premium-blog.single-post .prowpsite-blog-shell__content h3[id] {
  scroll-margin-top: calc(var(--psb-sticky-top, 5.5rem) + 0.75rem);
}

body.prowpsite-premium-blog .prowpsite-blog-shell,
body.prowpsite-premium-blog .prowpsite-blog-shell__content,
body.prowpsite-premium-blog.single-post #primary,
body.prowpsite-premium-blog.single-post .site-content {
  max-width: 100%;
  min-width: 0;
}

/* Prevent phantom horizontal scrollWidth on single posts (tables/RTL/theme) */
body.prowpsite-premium-blog.single-post,
body.prowpsite-premium-blog.single-post #page,
body.prowpsite-premium-blog.single-post .site,
body.prowpsite-premium-blog.single-post #content,
body.prowpsite-premium-blog.single-post .site-content,
body.prowpsite-premium-blog.single-post .ast-container,
body.prowpsite-premium-blog.single-post #primary,
body.prowpsite-premium-blog.single-post .site-main,
body.prowpsite-premium-blog.single-post .ast-article-single,
body.prowpsite-premium-blog.single-post article.post {
  overflow-x: clip;
  max-width: 100%;
}

body.prowpsite-premium-blog.single-post .entry-content,
body.prowpsite-premium-blog.single-post .prowpsite-blog-shell__content {
  overflow-x: auto;
  max-width: 100%;
}

body.prowpsite-premium-blog.single-post .entry-content table,
body.prowpsite-premium-blog.single-post .entry-content .wp-block-table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
}

body.prowpsite-premium-blog .prowpsite-blog-toc {
  background: var(--psb-surface);
  border: 1px solid var(--psb-border);
  border-radius: var(--psb-radius-sm);
  padding: 0.65rem 0.75rem;
  box-shadow: none;
  position: relative;
  /* Never a fixed overlay that covers article content */
  z-index: 1;
}

/* Sticky TOC inside sidebar — expand-in-place, NEVER a scrollbar */
body.prowpsite-premium-blog.psb-toc-sticky .prowpsite-blog-toc--aside.prowpsite-blog-toc--sticky {
  position: sticky;
  top: var(--psb-sticky-top, 5.5rem);
  align-self: start;
  max-height: none;
  overflow: visible;
  display: flex;
  flex-direction: column;
}

body.prowpsite-premium-blog.single-post.psb-sidebar-sticky .prowpsite-blog-toc--aside.prowpsite-blog-toc--sticky {
  /* Aside already sticky — avoid double-sticky stacking */
  position: static;
  top: auto;
  max-height: none;
}

body.prowpsite-premium-blog .prowpsite-blog-toc__toggle {
  display: none;
  width: 100%;
  min-height: 44px;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  border: 0;
  background: transparent;
  color: var(--psb-text);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  text-align: start;
  padding: 0.35rem 0.15rem;
  flex-shrink: 0;
}

body.prowpsite-premium-blog .prowpsite-blog-toc__toggle::after {
  content: "+";
  font-size: 1.25rem;
  line-height: 1;
}

body.prowpsite-premium-blog .prowpsite-blog-toc.is-open .prowpsite-blog-toc__toggle::after {
  content: "–";
}

body.prowpsite-premium-blog .prowpsite-blog-toc__list {
  list-style: none;
  margin: 0.35rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  max-height: none;
  overflow: visible;
}

body.prowpsite-premium-blog .prowpsite-blog-toc__item.is-toc-overflow {
  display: none;
}

body.prowpsite-premium-blog .prowpsite-blog-toc.is-expanded .prowpsite-blog-toc__item.is-toc-overflow {
  display: list-item;
}

body.prowpsite-premium-blog .prowpsite-blog-toc__row {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

body.prowpsite-premium-blog .prowpsite-blog-toc__row > a {
  flex: 1 1 auto;
  min-width: 0;
}

body.prowpsite-premium-blog .prowpsite-blog-toc__kids-toggle {
  flex: 0 0 auto;
  min-width: 44px;
  min-height: 44px;
  border: 0;
  border-radius: 0.5rem;
  background: color-mix(in srgb, var(--psb-accent) 10%, transparent);
  color: var(--psb-accent);
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}

body.prowpsite-premium-blog .prowpsite-blog-toc__kids-toggle:hover,
body.prowpsite-premium-blog .prowpsite-blog-toc__kids-toggle:focus-visible {
  background: color-mix(in srgb, var(--psb-accent) 18%, transparent);
}

body.prowpsite-premium-blog .prowpsite-blog-toc__children {
  list-style: none;
  margin: 0.15rem 0 0.25rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  padding-inline-start: 0.35rem;
  border-inline-start: 2px solid color-mix(in srgb, var(--psb-accent) 28%, transparent);
}

body.prowpsite-premium-blog .prowpsite-blog-toc__children[hidden] {
  display: none !important;
}

body.prowpsite-premium-blog .prowpsite-blog-toc__more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  width: 100%;
  margin-block-start: 0.45rem;
  padding: 0.35rem 0.75rem;
  border: 1px dashed var(--psb-border);
  border-radius: 0.65rem;
  background: transparent;
  color: var(--psb-accent);
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
}

body.prowpsite-premium-blog .prowpsite-blog-toc.is-expanded .prowpsite-blog-toc__more {
  display: none;
}

body.prowpsite-premium-blog .prowpsite-blog-toc__item a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0.35rem 0.5rem;
  border-radius: 0.5rem;
  color: var(--psb-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  border-inline-start: 3px solid transparent;
  transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

body.prowpsite-premium-blog .prowpsite-blog-toc__item--h3 a {
  padding-inline-start: 0.75rem;
  font-weight: 500;
  font-size: 0.85rem;
}

body.prowpsite-premium-blog .prowpsite-blog-toc__item a:hover,
body.prowpsite-premium-blog .prowpsite-blog-toc__item a:focus-visible {
  color: var(--psb-text);
  background: color-mix(in srgb, var(--psb-accent) 12%, transparent);
}

body.prowpsite-premium-blog .prowpsite-blog-toc__item a.is-active,
body.prowpsite-premium-blog .prowpsite-blog-toc__item a[aria-current="location"] {
  color: var(--psb-accent);
  font-weight: 700;
  background: color-mix(in srgb, var(--psb-accent) 14%, transparent);
  border-inline-start-color: var(--psb-accent);
}

@media (max-width: 1023px) {
  body.prowpsite-premium-blog .prowpsite-blog-toc--mobile {
    position: static;
    z-index: 1;
  }

  body.prowpsite-premium-blog .prowpsite-blog-toc--mobile .prowpsite-blog-toc__toggle {
    display: inline-flex;
  }

  /* Accordion collapsed by default — expand-in-place, no scrollbar */
  body.prowpsite-premium-blog .prowpsite-blog-toc--mobile:not(.is-open) .prowpsite-blog-toc__list,
  body.prowpsite-premium-blog .prowpsite-blog-toc--mobile:not(.is-open) .prowpsite-blog-toc__more {
    display: none;
  }

  body.prowpsite-premium-blog .prowpsite-blog-toc--mobile.is-open .prowpsite-blog-toc__list {
    display: flex;
    max-height: none;
    overflow: visible;
  }

  body.prowpsite-premium-blog .prowpsite-blog-share {
    position: static;
    width: 100%;
    max-width: 100%;
  }

  body.prowpsite-premium-blog .prowpsite-blog-share__links {
    flex-direction: row;
    flex-wrap: wrap;
  }
}

/* Share: SVG icon rail (desktop sticky) / horizontal row (mobile) */
body.prowpsite-premium-blog .prowpsite-blog-share {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin-block: 0.35rem 0.55rem;
  padding-inline: 0.15rem;
}

body.prowpsite-premium-blog .prowpsite-blog-share .screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

body.prowpsite-premium-blog .prowpsite-blog-share__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

body.prowpsite-premium-blog .prowpsite-blog-share__btn {
  position: relative;
  min-height: 44px;
  min-width: 44px;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.65rem;
  border: 1px solid var(--psb-border);
  background: var(--psb-surface);
  color: var(--psb-text);
  text-decoration: none;
  cursor: pointer;
  padding: 0;
  transition: border-color 0.18s ease, color 0.18s ease, background 0.18s ease;
}

body.prowpsite-premium-blog .prowpsite-blog-share__icon {
  display: block;
  width: 1.15rem;
  height: 1.15rem;
  flex-shrink: 0;
}

body.prowpsite-premium-blog .prowpsite-blog-share__btn:hover,
body.prowpsite-premium-blog .prowpsite-blog-share__btn:focus-visible {
  border-color: color-mix(in srgb, var(--psb-accent) 55%, var(--psb-border));
  color: var(--psb-accent);
  outline: none;
}

body.prowpsite-premium-blog .prowpsite-blog-share__btn:focus-visible {
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--psb-accent) 35%, transparent);
}

body.prowpsite-premium-blog .prowpsite-blog-share__btn.is-copied {
  background: color-mix(in srgb, var(--psb-accent) 18%, var(--psb-surface));
  color: var(--psb-accent);
}

body.prowpsite-premium-blog .prowpsite-blog-share__btn--wa:hover,
body.prowpsite-premium-blog .prowpsite-blog-share__btn--wa:focus-visible {
  color: #128c7e;
  border-color: color-mix(in srgb, #128c7e 45%, var(--psb-border));
}

body.prowpsite-premium-blog .prowpsite-blog-share__btn--fb:hover,
body.prowpsite-premium-blog .prowpsite-blog-share__btn--fb:focus-visible {
  color: #1877f2;
  border-color: color-mix(in srgb, #1877f2 45%, var(--psb-border));
}

body.prowpsite-premium-blog .prowpsite-blog-share__btn--x:hover,
body.prowpsite-premium-blog .prowpsite-blog-share__btn--x:focus-visible {
  color: #0f172a;
}

[dir="rtl"] body.prowpsite-premium-blog .prowpsite-blog-toc__item--h3 a {
  padding-inline-start: 1.1rem;
  padding-inline-end: 0.5rem;
}

