/* ============================================================
   SINGLE POST — Full Redesign v0.1.16
   Layout: Full-width hero → content + sticky sidebar
   ============================================================ */

/* ── Nuclear Astra reset for single posts ── */
.single #page,
.single #content,
.single #primary,
.single .content-area,
.single .site-content,
.single .ast-container,
.single .ast-row,
.single article.post,
.single .entry-content-wrap,
.single .ast-col-md-8,
.single .ast-col-md-9,
.single .ast-col-md-12,
.single .ast-col-xs-12 {
  all: unset !important;
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  float: none !important;
  clear: both !important;
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
}

/* Hide Astra's sidebar on single posts */
.single #secondary,
.single .widget-area,
.single .ast-col-md-4,
.single .ast-col-md-3 {
  display: none !important;
}

/* Let the body/site background show */
.single .site-content {
  background: var(--pk-gray-50) !important;
}

/* Ensure the entry header Astra adds doesn't interfere */
.single .entry-header,
.single .entry-footer,
.single .ast-author-meta,
.single .ast-breadcrumbs-wrapper {
  display: none !important;
}

/* ════════════════════════════════════════════════════════════
   HERO — Full-width feature image with overlay title
   Must be positioned relative to viewport width
   ════════════════════════════════════════════════════════════ */
.pk-post-hero {
  position: relative;
  width: 100vw !important;
  left: 50% !important;
  right: 50% !important;
  margin-left: -50vw !important;
  margin-right: -50vw !important;
  min-height: 480px;
  max-height: 580px;
  overflow: hidden;
  display: flex !important;
  align-items: flex-end;
  background: var(--pk-gray-900);
  float: none !important;
  clear: both !important;
}

.pk-post-hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 8s ease;
}

.pk-post-hero:hover .pk-post-hero__img {
  transform: scale(1.03);
}

/* Gradient overlay */
.pk-post-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(15,23,42,.95) 0%,
    rgba(15,23,42,.7) 40%,
    rgba(15,23,42,.2) 80%,
    transparent 100%
  );
}

/* No-image fallback */
.pk-post-hero--no-img {
  min-height: 360px;
  background: linear-gradient(135deg, var(--pk-purple-dark) 0%, var(--pk-purple) 60%, var(--pk-purple-light) 100%);
}

.pk-post-hero--no-img .pk-post-hero__overlay {
  background: rgba(0,0,0,.2);
}

/* Hero content */
.pk-post-hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  padding: 3rem 1.5rem 3.5rem;
}

/* Category badges */
.pk-post-hero__cats {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.pk-post-hero__cat {
  display: inline-block;
  font-family: var(--pk-font-head);
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--pk-white);
  background: var(--pk-purple);
  padding: .3rem .85rem;
  border-radius: var(--pk-radius-pill);
  text-decoration: none;
  transition: background .2s;
}

.pk-post-hero__cat:hover { background: var(--pk-purple-light); color: var(--pk-white); }

/* Post title */
.pk-post-hero__title {
  font-family: var(--pk-font-head);
  font-size: clamp(1.7rem, 4vw, 2.8rem);
  font-weight: 800;
  color: var(--pk-white);
  line-height: 1.18;
  margin: 0 0 1.2rem;
  letter-spacing: -.5px;
}

/* Meta row */
.pk-post-hero__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .4rem 1rem;
  font-size: .84rem;
  color: rgba(255,255,255,.65);
}

.pk-post-hero__meta-item {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
}

.pk-post-hero__meta-item svg { opacity: .7; flex-shrink: 0; }
.pk-post-hero__meta-sep { opacity: .3; }

.pk-post-hero__author-img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.3);
  object-fit: cover;
}

/* ════════════════════════════════════════════════════════════
   BREADCRUMB
   ════════════════════════════════════════════════════════════ */
.pk-post-breadcrumb {
  position: relative;
  width: 100vw !important;
  left: 50% !important;
  right: 50% !important;
  margin-left: -50vw !important;
  margin-right: -50vw !important;
  background: var(--pk-white);
  border-bottom: 1px solid var(--pk-gray-200);
  padding: .65rem 1.5rem;
  float: none !important;
  clear: both !important;
}

.pk-post-breadcrumb__inner {
  max-width: 1160px;
  margin: 0 auto;
  font-size: .78rem;
  color: var(--pk-gray-400);
  display: flex;
  align-items: center;
  gap: .4rem;
  flex-wrap: wrap;
}

.pk-post-breadcrumb__inner a {
  color: var(--pk-gray-500, #6b7280);
  text-decoration: none;
  transition: color .2s;
}

.pk-post-breadcrumb__inner a:hover { color: var(--pk-purple); }
.pk-post-breadcrumb__sep { opacity: .4; }
.pk-post-breadcrumb__current { color: var(--pk-gray-700, #374151); font-weight: 500; }

/* ════════════════════════════════════════════════════════════
   MAIN LAYOUT — Content + Sticky Sidebar
   ════════════════════════════════════════════════════════════ */
.pk-post-layout {
  max-width: 1160px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2.5rem;
  align-items: start;
}

/* ════════════════════════════════════════════════════════════
   ARTICLE CONTENT AREA
   ════════════════════════════════════════════════════════════ */
.pk-post-content {
  min-width: 0;
}

/* ── Content card ── */
.pk-post-body {
  background: var(--pk-white);
  border: 1px solid var(--pk-gray-200);
  border-radius: var(--pk-radius-lg);
  padding: 2.8rem 3rem;
  box-shadow: var(--pk-shadow-sm);
  font-size: 1.02rem;
  line-height: 1.85;
  color: var(--pk-gray-800);
}

/* ── Typography ── */
.pk-post-body h2 {
  font-family: var(--pk-font-head);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--pk-gray-900);
  margin: 2.8rem 0 .8rem;
  padding-bottom: .55rem;
  border-bottom: 2px solid var(--pk-purple-xlight);
  line-height: 1.25;
  scroll-margin-top: 100px;
}

.pk-post-body h3 {
  font-family: var(--pk-font-head);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--pk-gray-900);
  margin: 2rem 0 .6rem;
  scroll-margin-top: 100px;
}

.pk-post-body h4 {
  font-family: var(--pk-font-head);
  font-size: 1rem;
  font-weight: 700;
  color: var(--pk-gray-800);
  margin: 1.5rem 0 .5rem;
}

.pk-post-body p { margin-bottom: 1.5rem; }

.pk-post-body a {
  color: var(--pk-purple);
  text-decoration: underline;
  text-decoration-color: rgba(91,33,182,.3);
  text-underline-offset: 3px;
  transition: color .2s, text-decoration-color .2s;
}

.pk-post-body a:hover {
  color: var(--pk-purple-light);
  text-decoration-color: var(--pk-purple-light);
}

.pk-post-body strong { font-weight: 700; color: var(--pk-gray-900); }
.pk-post-body em { font-style: italic; }

/* ── Lists ── */
.pk-post-body ul,
.pk-post-body ol {
  padding-left: 1.6rem;
  margin-bottom: 1.5rem;
}

.pk-post-body ul li,
.pk-post-body ol li {
  margin-bottom: .55rem;
  padding-left: .3rem;
  line-height: 1.7;
}

.pk-post-body ul li::marker { color: var(--pk-purple); font-size: 1.1em; }
.pk-post-body ol li::marker {
  color: var(--pk-purple);
  font-weight: 700;
  font-family: var(--pk-font-head);
}

/* ── Blockquote ── */
.pk-post-body blockquote {
  position: relative;
  border-left: 4px solid var(--pk-purple);
  background: var(--pk-purple-xlight);
  margin: 2rem 0;
  padding: 1.4rem 1.8rem 1.4rem 2rem;
  border-radius: 0 var(--pk-radius) var(--pk-radius) 0;
  font-style: italic;
  font-size: 1.05rem;
  color: var(--pk-purple-dark);
  line-height: 1.65;
}

.pk-post-body blockquote::before {
  content: '\201C';
  position: absolute;
  top: -.2rem;
  left: .8rem;
  font-size: 3.5rem;
  color: var(--pk-purple);
  opacity: .2;
  font-family: Georgia, serif;
  line-height: 1;
}

/* ── Code ── */
.pk-post-body code {
  font-family: var(--pk-font-mono);
  font-size: .87em;
  background: var(--pk-purple-xlight);
  color: var(--pk-purple-dark);
  padding: .18em .5em;
  border-radius: 5px;
}

.pk-post-body pre {
  position: relative;
  background: var(--pk-gray-900);
  color: #e2e8f0;
  padding: 1.6rem 1.8rem;
  border-radius: var(--pk-radius);
  overflow-x: auto;
  margin: 2rem 0;
  border-left: 4px solid var(--pk-purple);
  font-size: .88rem;
  line-height: 1.65;
}

.pk-post-body pre code {
  background: transparent;
  color: inherit;
  padding: 0;
  font-size: inherit;
  border-radius: 0;
}

/* ── Images ── */
.pk-post-body img {
  max-width: 100%;
  height: auto;
  border-radius: var(--pk-radius);
  margin: 1.5rem 0;
  box-shadow: var(--pk-shadow);
  display: block;
}

.pk-post-body figure {
  margin: 2rem 0;
}

.pk-post-body figcaption {
  text-align: center;
  font-size: .82rem;
  color: var(--pk-gray-400);
  margin-top: .6rem;
  font-style: italic;
}

/* ── Tables ── */
.pk-post-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  font-size: .91rem;
  border-radius: var(--pk-radius);
  overflow: hidden;
  box-shadow: var(--pk-shadow-sm);
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.pk-post-body thead {
  background: var(--pk-purple);
  color: var(--pk-white);
}

.pk-post-body th {
  padding: .9rem 1.1rem;
  font-family: var(--pk-font-head);
  font-weight: 600;
  text-align: left;
  white-space: nowrap;
}

.pk-post-body td {
  padding: .78rem 1.1rem;
  border-bottom: 1px solid var(--pk-gray-200);
  vertical-align: top;
}

.pk-post-body tbody tr:nth-child(even) { background: var(--pk-gray-50); }
.pk-post-body tbody tr:hover { background: var(--pk-purple-xlight); }

/* ── Horizontal rule ── */
.pk-post-body hr {
  border: none;
  height: 2px;
  background: var(--pk-purple-xlight);
  margin: 2.5rem 0;
  border-radius: 2px;
}

/* ════════════════════════════════════════════════════════════
   TAGS ROW
   ════════════════════════════════════════════════════════════ */
.pk-post-tags {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--pk-gray-200);
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  align-items: center;
}

.pk-post-tags__label {
  font-family: var(--pk-font-head);
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--pk-gray-400);
  margin-right: .3rem;
}

.pk-post-tags a {
  display: inline-block;
  font-size: .78rem;
  font-weight: 600;
  color: var(--pk-purple);
  background: var(--pk-purple-xlight);
  border: 1px solid rgba(91,33,182,.15);
  padding: .28rem .85rem;
  border-radius: var(--pk-radius-pill);
  text-decoration: none;
  transition: background .2s, color .2s;
}

.pk-post-tags a:hover {
  background: var(--pk-purple);
  color: var(--pk-white);
  border-color: var(--pk-purple);
}

/* ════════════════════════════════════════════════════════════
   SHARE BAR
   ════════════════════════════════════════════════════════════ */
.pk-post-share {
  background: var(--pk-white);
  border: 1px solid var(--pk-gray-200);
  border-radius: var(--pk-radius-lg);
  padding: 1.4rem 1.8rem;
  margin-top: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  box-shadow: var(--pk-shadow-sm);
}

.pk-post-share__label {
  font-family: var(--pk-font-head);
  font-size: .82rem;
  font-weight: 700;
  color: var(--pk-gray-600);
  text-transform: uppercase;
  letter-spacing: .8px;
  flex-shrink: 0;
}

.pk-post-share__btns {
  display: flex;
  gap: .6rem;
  flex-wrap: wrap;
}

.pk-share-btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-family: var(--pk-font-head);
  font-size: .78rem;
  font-weight: 700;
  padding: .45rem 1rem;
  border-radius: var(--pk-radius-pill);
  text-decoration: none;
  transition: transform .2s, box-shadow .2s, opacity .2s;
  border: none;
  cursor: pointer;
  white-space: nowrap;
}

.pk-share-btn:hover { transform: translateY(-2px); box-shadow: var(--pk-shadow); opacity: .9; }

.pk-share-btn--twitter   { background: #000; color: #fff; }
.pk-share-btn--facebook  { background: #1877f2; color: #fff; }
.pk-share-btn--whatsapp  { background: #25d366; color: #fff; }
.pk-share-btn--copy      { background: var(--pk-purple-xlight); color: var(--pk-purple); border: 1px solid rgba(91,33,182,.2); }
.pk-share-btn--copy.copied { background: #dcfce7; color: #16a34a; border-color: #16a34a; }

/* ════════════════════════════════════════════════════════════
   AUTHOR BOX
   ════════════════════════════════════════════════════════════ */
.pk-post-author {
  background: var(--pk-white);
  border: 1px solid var(--pk-gray-200);
  border-radius: var(--pk-radius-lg);
  padding: 2rem;
  margin-top: 1.5rem;
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  box-shadow: var(--pk-shadow-sm);
  position: relative;
  overflow: hidden;
}

.pk-post-author::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--pk-purple), var(--pk-purple-light));
}

.pk-post-author__avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--pk-purple-xlight);
  flex-shrink: 0;
}

.pk-post-author__avatar-placeholder {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--pk-purple), var(--pk-purple-light));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--pk-font-head);
  font-size: 1.5rem;
  font-weight: 800;
  color: rgba(255,255,255,.7);
  flex-shrink: 0;
}

.pk-post-author__info { flex: 1; min-width: 0; }

.pk-post-author__label {
  font-family: var(--pk-font-head);
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--pk-purple);
  margin-bottom: .3rem;
  display: block;
}

.pk-post-author__name {
  font-family: var(--pk-font-head);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--pk-gray-900);
  margin: 0 0 .5rem;
}

.pk-post-author__bio {
  font-size: .88rem;
  color: var(--pk-gray-600);
  line-height: 1.6;
  margin: 0;
}

/* ════════════════════════════════════════════════════════════
   RELATED POSTS
   ════════════════════════════════════════════════════════════ */
.pk-related-posts {
  margin-top: 1.5rem;
}

.pk-related-posts__title {
  font-family: var(--pk-font-head);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--pk-gray-900);
  margin: 0 0 1.2rem;
  display: flex;
  align-items: center;
  gap: .6rem;
}

.pk-related-posts__title::after {
  content: '';
  flex: 1;
  height: 2px;
  background: var(--pk-purple-xlight);
  border-radius: 2px;
}

.pk-related-posts__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}

.pk-related-card {
  background: var(--pk-white);
  border: 1px solid var(--pk-gray-200);
  border-radius: var(--pk-radius);
  overflow: hidden;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  transition: transform .2s, box-shadow .2s, border-color .2s;
  box-shadow: var(--pk-shadow-sm);
}

.pk-related-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--pk-shadow);
  border-color: rgba(91,33,182,.2);
}

.pk-related-card__img {
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--pk-purple-xlight);
  flex-shrink: 0;
}

.pk-related-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .35s ease;
}

.pk-related-card:hover .pk-related-card__img img { transform: scale(1.05); }

.pk-related-card__no-img {
  width: 100%;
  height: 100%;
  min-height: 120px;
  background: linear-gradient(135deg, var(--pk-purple-dark), var(--pk-purple-light));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--pk-font-head);
  font-size: 1.5rem;
  font-weight: 800;
  color: rgba(255,255,255,.25);
}

.pk-related-card__body {
  padding: 1rem 1.1rem 1.2rem;
  flex: 1;
}

.pk-related-card__cat {
  font-family: var(--pk-font-head);
  font-size: .66rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: var(--pk-purple);
  margin-bottom: .4rem;
  display: block;
}

.pk-related-card__title {
  font-family: var(--pk-font-head);
  font-size: .9rem;
  font-weight: 700;
  color: var(--pk-gray-900);
  line-height: 1.38;
  margin: 0 0 .4rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pk-related-card__date {
  font-size: .74rem;
  color: var(--pk-gray-400);
}

/* ════════════════════════════════════════════════════════════
   STICKY SIDEBAR
   ════════════════════════════════════════════════════════════ */
.pk-post-sidebar {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 1.3rem;
}

/* ── TOC Widget ── */
.pk-toc-widget {
  background: var(--pk-white);
  border: 1px solid var(--pk-gray-200);
  border-radius: var(--pk-radius-lg);
  overflow: hidden;
  box-shadow: var(--pk-shadow-sm);
}

.pk-toc-widget__head {
  background: var(--pk-purple);
  padding: .9rem 1.3rem;
  display: flex;
  align-items: center;
  gap: .5rem;
}

.pk-toc-widget__head-title {
  font-family: var(--pk-font-head);
  font-size: .82rem;
  font-weight: 700;
  color: var(--pk-white);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0;
}

.pk-toc-widget__body {
  padding: 1rem 1.3rem 1.2rem;
  max-height: 400px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--pk-purple-xlight) transparent;
}

.pk-toc-widget__body::-webkit-scrollbar { width: 4px; }
.pk-toc-widget__body::-webkit-scrollbar-track { background: transparent; }
.pk-toc-widget__body::-webkit-scrollbar-thumb { background: var(--pk-purple-xlight); border-radius: 4px; }

.pk-toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: toc-counter;
}

.pk-toc-list li {
  counter-increment: toc-counter;
  margin-bottom: .15rem;
}

.pk-toc-list a {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  font-size: .82rem;
  color: var(--pk-gray-700, #374151);
  text-decoration: none;
  padding: .4rem .5rem;
  border-radius: 6px;
  transition: background .15s, color .15s;
  line-height: 1.4;
}

.pk-toc-list a::before {
  content: counter(toc-counter);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  min-width: 18px;
  background: var(--pk-purple-xlight);
  color: var(--pk-purple);
  font-family: var(--pk-font-head);
  font-size: .65rem;
  font-weight: 700;
  border-radius: 4px;
  margin-top: .1rem;
}

.pk-toc-list a:hover,
.pk-toc-list a.active {
  background: var(--pk-purple-xlight);
  color: var(--pk-purple);
}

.pk-toc-list a.active::before {
  background: var(--pk-purple);
  color: var(--pk-white);
}

.pk-toc-list--sub {
  margin-left: 1.5rem;
}

.pk-toc-list--sub a::before {
  content: '—';
  background: transparent;
  color: var(--pk-gray-400);
  font-weight: 400;
  font-size: .8rem;
}

/* ── Newsletter Widget (Sidebar) ── */
.pk-sidebar-newsletter {
  background: linear-gradient(135deg, var(--pk-purple-dark), var(--pk-purple));
  border-radius: var(--pk-radius-lg);
  padding: 1.6rem 1.3rem;
  box-shadow: var(--pk-shadow);
}

.pk-sidebar-newsletter__icon { font-size: 1.8rem; margin-bottom: .6rem; }

.pk-sidebar-newsletter__title {
  font-family: var(--pk-font-head);
  font-size: 1rem;
  font-weight: 800;
  color: var(--pk-white);
  margin: 0 0 .4rem;
}

.pk-sidebar-newsletter__desc {
  font-size: .8rem;
  color: rgba(255,255,255,.7);
  line-height: 1.5;
  margin: 0 0 1.1rem;
}

.pk-sidebar-newsletter__input {
  width: 100%;
  padding: .65rem 1rem;
  border-radius: var(--pk-radius-pill);
  border: none;
  font-size: .85rem;
  margin-bottom: .6rem;
  background: rgba(255,255,255,.12);
  color: var(--pk-white);
  outline: none;
  border: 1.5px solid rgba(255,255,255,.2);
  transition: border-color .2s, background .2s;
}

.pk-sidebar-newsletter__input::placeholder { color: rgba(255,255,255,.45); }
.pk-sidebar-newsletter__input:focus {
  border-color: rgba(255,255,255,.5);
  background: rgba(255,255,255,.18);
}

.pk-sidebar-newsletter__btn {
  width: 100%;
  padding: .65rem 1rem;
  border-radius: var(--pk-radius-pill);
  border: none;
  background: var(--pk-accent);
  color: var(--pk-gray-900);
  font-family: var(--pk-font-head);
  font-weight: 700;
  font-size: .85rem;
  cursor: pointer;
  transition: background .2s, transform .2s;
}

.pk-sidebar-newsletter__btn:hover {
  background: var(--pk-accent-dark);
  transform: translateY(-1px);
}

/* ════════════════════════════════════════════════════════════
   PREV / NEXT NAVIGATION
   ════════════════════════════════════════════════════════════ */
.pk-post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1.5rem;
}

.pk-post-nav__item {
  background: var(--pk-white);
  border: 1px solid var(--pk-gray-200);
  border-radius: var(--pk-radius);
  padding: 1.2rem 1.4rem;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: .3rem;
  transition: border-color .2s, box-shadow .2s, transform .2s;
  box-shadow: var(--pk-shadow-sm);
}

.pk-post-nav__item:hover {
  border-color: var(--pk-purple);
  box-shadow: var(--pk-shadow);
  transform: translateY(-2px);
}

.pk-post-nav__item--next { text-align: right; }

.pk-post-nav__dir {
  font-family: var(--pk-font-head);
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--pk-purple);
  display: flex;
  align-items: center;
  gap: .3rem;
}

.pk-post-nav__item--next .pk-post-nav__dir { justify-content: flex-end; }

.pk-post-nav__title {
  font-family: var(--pk-font-head);
  font-size: .88rem;
  font-weight: 700;
  color: var(--pk-gray-800);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ════════════════════════════════════════════════════════════
   READING PROGRESS (override for single)
   ════════════════════════════════════════════════════════════ */
.single .pk-progress {
  height: 3px;
  background: linear-gradient(90deg, var(--pk-purple), var(--pk-accent));
}

/* ════════════════════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .pk-post-layout {
    grid-template-columns: 1fr 260px;
    gap: 2rem;
    padding: 2rem 1.5rem 3rem;
  }
  .pk-post-body { padding: 2.2rem 2.4rem; }
  .pk-post-hero { min-height: 400px; max-height: 500px; }
}

@media (max-width: 900px) {
  .pk-post-layout {
    grid-template-columns: 1fr;
    padding: 1.8rem 1.5rem 3rem;
    display: flex !important;
    flex-direction: column;
  }

  /* Sidebar moves above content on mobile */
  .pk-post-sidebar {
    position: static;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    order: -1;
  }

  /* Content comes after sidebar */
  .pk-post-content {
    order: 1;
  }

  /* Hide newsletter widget on mobile — shows in footer already */
  .pk-post-sidebar .pk-sidebar-newsletter {
    display: none !important;
  }

  /* TOC: full width, no height cap, no scroll */
  .pk-toc-widget {
    width: 100% !important;
  }

  .pk-toc-widget__body {
    max-height: none !important;
    overflow-y: visible !important;
  }

  .pk-post-hero { min-height: 360px; max-height: 440px; }
  .pk-related-posts__grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  .pk-post-hero { min-height: 300px; max-height: 400px; }
  .pk-post-hero__content { padding: 2rem 1.2rem 2.5rem; }
  .pk-post-hero__title { font-size: clamp(1.4rem, 5vw, 2rem); }
  .pk-post-body { padding: 1.8rem 1.5rem; font-size: .97rem; }
  .pk-post-body h2 { font-size: 1.35rem; }
  .pk-post-body h3 { font-size: 1.1rem; }
  .pk-post-layout { padding: 1.5rem 1.2rem 2.5rem; gap: 1.2rem; }

  /* Sidebar: single column on phones */
  .pk-post-sidebar {
    grid-template-columns: 1fr !important;
  }

  .pk-related-posts__grid { grid-template-columns: repeat(2, 1fr); gap: .9rem; }
  .pk-post-nav { grid-template-columns: 1fr; }
  .pk-post-nav__item--next { text-align: left; }
  .pk-post-nav__item--next .pk-post-nav__dir { justify-content: flex-start; }
}

@media (max-width: 480px) {
  .pk-post-hero { min-height: 260px; }
  .pk-post-hero__content { padding: 1.5rem 1rem 2rem; }
  .pk-post-body { padding: 1.4rem 1.1rem; font-size: .94rem; line-height: 1.75; }
  .pk-post-body h2 { font-size: 1.2rem; margin-top: 2rem; }
  .pk-post-body h3 { font-size: 1rem; }
  .pk-post-layout { padding: 1.2rem 1rem 2rem; }
  .pk-post-share { padding: 1.1rem 1.3rem; gap: .8rem; }
  .pk-post-author { flex-direction: column; align-items: center; text-align: center; }
  .pk-related-posts__grid { grid-template-columns: 1fr; }
}
