/* PC Explorers — Design 4 v1.2 — individual WordPress posts only */
body.single-post.pcx-review-v4 {
  --pcx4-ink: #111b34;
  --pcx4-copy: #33435e;
  --pcx4-muted: #63718b;
  --pcx4-blue: #2463eb;
  --pcx4-purple: #8b36dd;
  --pcx4-line: #e1e8f5;
  --pcx4-surface: #f4f7fd;
  --pcx4-shadow: 0 15px 42px rgba(24,42,77,.085);
  background: #f5f7fc;
}

/* Main article panel: deliberately do not touch site header, nav, or footer. */
body.single-post.pcx-review-v4 .inside-article {
  position: relative;
  box-sizing: border-box;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: #fff;
  overflow: visible;
}
/* No decorative line or overlay on the top of the post. */
body.single-post.pcx-review-v4 .inside-article::before,
body.single-post.pcx-review-v4 .inside-article::after {
  content: none;
  display: none;
}
body.single-post.pcx-review-v4 .inside-article .entry-header { margin-bottom: 18px; }
body.single-post.pcx-review-v4 .inside-article .entry-title {
  color: var(--pcx4-ink);
  font-size: clamp(29px, 3vw, 43px);
  line-height: 1.18;
  letter-spacing: -.035em;
  font-weight: 800;
  text-transform: none;
  text-wrap: pretty;
  margin: 0 0 12px;
}
body.single-post.pcx-review-v4 .inside-article .entry-meta,
body.single-post.pcx-review-v4 .inside-article .entry-meta a {
  font-size: 13px;
  line-height: 1.6;
  color: var(--pcx4-muted);
}
body.single-post.pcx-review-v4 .inside-article .entry-content {
  box-sizing: border-box;
  width: 100%;
  max-width: 820px;
  margin-inline: auto;
  padding-inline: clamp(5px, 1.2vw, 15px);
  color: var(--pcx4-copy);
  font-family: inherit;
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: 0;
  overflow-wrap: break-word;
}
body.single-post.pcx-review-v4 .inside-article .entry-content p {
  margin: 0 0 1.15em;
  color: var(--pcx4-copy);
  font-size: 16px;
  line-height: 1.75;
}
body.single-post.pcx-review-v4 .inside-article .entry-content :is(h2,h3,h4,h5) {
  color: var(--pcx4-ink);
  font-weight: 800;
  letter-spacing: -.025em;
  text-transform: none;
  scroll-margin-top: 90px;
  text-wrap: pretty;
  line-height: 1.28;
}
body.single-post.pcx-review-v4 .inside-article .entry-content h2 {
  margin: 1.65em 0 .65em;
  padding-left: 14px;
  border-left: 4px solid var(--pcx4-blue);
  font-size: clamp(22px, 2vw, 28px);
}
body.single-post.pcx-review-v4 .inside-article .entry-content h3 {
  margin: 1.4em 0 .5em;
  padding-left: 12px;
  border-left: 3px solid var(--pcx4-purple);
  font-size: clamp(19px, 1.6vw, 23px);
}
body.single-post.pcx-review-v4 .inside-article .entry-content h4 {
  margin: 1.25em 0 .45em;
  font-size: 18px;
}
body.single-post.pcx-review-v4 .inside-article .entry-content :is(ul,ol) { padding-left: 1.45em; margin: .6em 0 1.15em; }
body.single-post.pcx-review-v4 .inside-article .entry-content li { margin: .35em 0; line-height: 1.68; }
body.single-post.pcx-review-v4 .inside-article .entry-content a:not(.button):not(.wp-element-button) {
  color: #225bc7;
  text-underline-offset: 3px;
}
body.single-post.pcx-review-v4 .inside-article .entry-content a:hover { color: #6d28d9; }
body.single-post.pcx-review-v4 .inside-article .entry-content :is(figure,.wp-caption,.wp-block-image) {
  max-width: 100%;
  margin: 22px auto;
  text-align: center;
}
body.single-post.pcx-review-v4 .inside-article .entry-content :is(figure,.wp-caption,.wp-block-image) img,
body.single-post.pcx-review-v4 .inside-article .entry-content > p > img,
body.single-post.pcx-review-v4 .inside-article .entry-content > p > a > img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: min(460px, 56vh);
  object-fit: contain;
  margin: 12px auto;
  border: 0;
  border-radius: 8px;
  box-shadow: none;
}
body.single-post.pcx-review-v4 .inside-article .entry-content :is(figcaption,.wp-caption-text) {
  font-size: 13px;
  color: var(--pcx4-muted);
  line-height: 1.55;
  margin: 10px auto 0;
}
body.single-post.pcx-review-v4 .inside-article .entry-content blockquote {
  border: 1px solid #e2dafa;
  border-left: 4px solid var(--pcx4-purple);
  border-radius: 12px;
  background: linear-gradient(110deg,#f2f7ff,#f9f4ff);
  padding: 18px 22px;
  color: var(--pcx4-ink);
  margin: 22px 0;
}
body.single-post.pcx-review-v4 .inside-article .entry-content table {
  width: 100%;
  max-width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.55;
}
body.single-post.pcx-review-v4 .inside-article .entry-content :is(th,td) {
  border: 1px solid var(--pcx4-line);
  padding: 11px 12px;
  vertical-align: top;
}
body.single-post.pcx-review-v4 .inside-article .entry-content th { background: #edf3ff; color: var(--pcx4-ink); }
body.single-post.pcx-review-v4 .inside-article .entry-content :is(.wp-block-table,.table-responsive) { max-width: 100%; overflow-x: auto; }

/* New in-article TOC, generated from actual headings and anchors. */
body.single-post.pcx-review-v4 .inside-article .entry-content .pcx4-toc {
  box-sizing: border-box;
  margin: 24px 0 30px;
  padding: 0;
  border: 1px solid #bcd1ff;
  border-radius: 14px;
  background: linear-gradient(120deg,#f4f8ff 0%,#fcfaff 100%);
  overflow: hidden;
  box-shadow: 0 6px 24px rgba(29,70,158,.06);
}
body.single-post.pcx-review-v4 .pcx4-toc__top {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 13px 17px;
  border-bottom: 1px solid #dce6fb;
}
body.single-post.pcx-review-v4 .pcx4-toc__heading {
  color: var(--pcx4-ink);
  font-size: 17px;
  font-weight: 800;
}
body.single-post.pcx-review-v4 .pcx4-toc__heading::before { content:'☷'; color: var(--pcx4-blue); font-size: 22px; margin-right: 10px; }
body.single-post.pcx-review-v4 .pcx4-toc__count { color: var(--pcx4-muted); font-size: 12px; }
body.single-post.pcx-review-v4 .pcx4-toc__toggle {
  margin-left: auto;
  background: #fff;
  color: #2058bc;
  border: 1px solid #c9d9fa;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 12px;
  cursor: pointer;
}
body.single-post.pcx-review-v4 .inside-article .entry-content .pcx4-toc__list {
  list-style: none;
  box-sizing: border-box;
  margin: 0;
  padding: 14px 16px 16px;
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 6px 18px;
  max-height: 270px;
  overflow-y: auto;
  scrollbar-width: thin;
}
body.single-post.pcx-review-v4 .pcx4-toc__list[hidden] { display: none !important; }
body.single-post.pcx-review-v4 .inside-article .entry-content .pcx4-toc__list li { margin: 0; padding: 0; min-width: 0; }
body.single-post.pcx-review-v4 .inside-article .entry-content .pcx4-toc__list a {
  display: block;
  border-radius: 7px;
  padding: 7px 9px;
  font-size: 13px;
  line-height: 1.42;
  font-weight: 600;
  text-decoration: none;
  color: #304262;
  overflow-wrap: anywhere;
}
body.single-post.pcx-review-v4 .inside-article .entry-content .pcx4-toc__list a:hover,
body.single-post.pcx-review-v4 .inside-article .entry-content .pcx4-toc__list a:focus-visible { background: #e5edff; color: #2057c4; }
body.single-post.pcx-review-v4 .pcx4-toc__sub a { padding-left: 18px !important; font-weight: 400 !important; }

/* When the new in-article TOC is available, suppress the old floating Easy TOC
 * widget (which is visibly clipped in the user's screenshot). */
body.single-post.pcx-review-v4.pcx4-toc-ready #ez-toc-widget-sticky-container,
body.single-post.pcx-review-v4.pcx4-toc-ready .ez-toc-widget-sticky-container { display: none !important; }
/* If the new TOC cannot be built, constrain the original floating widget. */
body.single-post.pcx-review-v4:not(.pcx4-toc-ready) #ez-toc-widget-sticky-container {
  box-sizing: border-box;
  width: min(300px,calc(100vw - 28px)) !important;
  max-width: calc(100vw - 28px) !important;
  right: 14px !important;
  left: auto !important;
  overflow-x: hidden !important;
}
/* Hide duplicate in-article TOCs only after our replacement is successfully created. */
body.single-post.pcx-review-v4.pcx4-toc-ready .inside-article .entry-content :is(#ez-toc-container,.ez-toc-container,#toc_container,.lwptoc,.rank-math-toc-block,.wp-block-rank-math-toc-block,.toc-container) { display: none !important; }

/* Theme sidebar widgets — not the site-wide footer widgets. */
body.single-post.pcx-review-v4 :is(#secondary,.widget-area.sidebar,.sidebar .inside-right-sidebar) > .widget,
body.single-post.pcx-review-v4 :is(#secondary,.widget-area.sidebar,.sidebar .inside-right-sidebar) .widget {
  box-sizing: border-box;
  border: 1px solid var(--pcx4-line);
  border-radius: 15px;
  background: #fff;
  padding: 16px;
  margin-bottom: 18px;
  box-shadow: 0 8px 28px rgba(25,43,78,.055);
  overflow-wrap: anywhere;
}
body.single-post.pcx-review-v4 :is(#secondary,.widget-area.sidebar,.sidebar .inside-right-sidebar) .widget-title {
  color: var(--pcx4-ink);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.35;
}

@media (max-width: 1024px) {
  body.single-post.pcx-review-v4 .inside-article { border-radius: 0; }
  body.single-post.pcx-review-v4 #ez-toc-widget-sticky-container { display: none !important; }
}
@media (max-width: 640px) {
  body.single-post.pcx-review-v4 .inside-article .entry-title { font-size: clamp(25px,6.3vw,33px); }
  body.single-post.pcx-review-v4 .inside-article .entry-content { padding-inline: 0; font-size: 15.5px; }
  body.single-post.pcx-review-v4 .inside-article .entry-content p { font-size: 15.5px; }
  body.single-post.pcx-review-v4 .inside-article .entry-content h2 { font-size: 22px; }
  body.single-post.pcx-review-v4 .inside-article .entry-content h3 { font-size: 19px; }
  body.single-post.pcx-review-v4 .inside-article .entry-content .pcx4-toc__list { grid-template-columns: 1fr; max-height: 270px; }
  body.single-post.pcx-review-v4 .inside-article .entry-content :is(figure,.wp-caption,.wp-block-image) img { max-height: min(360px,47vh); }
}
