/* ══════════════════════════════════════════════════════════════
   PNI Blog — v4.6.7
   Covers: archive listing, single post, category/tag archive,
           search results, sidebar, author box, related posts
   ══════════════════════════════════════════════════════════════ */

/* ── Blog archive wrapper ───────────────────────────────────── */
.blg-page { background: var(--pni-bg-secondary); min-height: 70vh; }

/* ── Blog Hero / Archive Header ─────────────────────────────── */
.blg-hero {
  background: linear-gradient(140deg, #1E3A5F 0%, #264D7A 55%, #1A2E50 100%);
  padding: 3.5rem 0 4.5rem;
  position: relative; overflow: hidden;
}
.blg-hero::before {
  content: '';
  position: absolute; top: -80px; right: -60px;
  width: 380px; height: 380px; border-radius: 50%;
  background: radial-gradient(circle, rgba(194,87,143,.18), transparent 65%);
  pointer-events: none;
}
.blg-hero::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 52px; background: var(--pni-bg-secondary);
  clip-path: ellipse(62% 100% at 50% 100%);
}
.blg-hero-inner { position: relative; z-index: 1; text-align: center; }
.blg-hero-eyebrow {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .68rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase;
  color: #D4729F; margin-bottom: .65rem;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12);
  padding: .28rem .9rem; border-radius: 999px;
}
.blg-hero h1 {
  font-family: var(--pni-font-heading);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: #fff; font-weight: 700; margin-bottom: .5rem; line-height: 1.2;
}
.blg-hero-sub { font-size: .9rem; color: rgba(255,255,255,.5); max-width: 440px; margin: 0 auto; }

/* ── Category pill filter bar ───────────────────────────────── */
.blg-filter-bar {
  background: #fff;
  border-bottom: 1px solid var(--pni-border);
  padding: .9rem 0;
  position: sticky; top: 0; z-index: 90;
  box-shadow: 0 2px 8px rgba(30,58,95,.05);
}
.blg-filter-inner {
  display: flex; align-items: center; gap: .5rem;
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 2px;
}
.blg-filter-inner::-webkit-scrollbar { display: none; }
.blg-filter-pill {
  display: inline-flex; align-items: center; gap: .3rem;
  padding: .38rem .9rem;
  border: 1.5px solid var(--pni-border-dark);
  border-radius: 999px;
  font-size: .76rem; font-weight: 600; white-space: nowrap;
  color: var(--pni-text-secondary); background: #fff;
  text-decoration: none; flex-shrink: 0;
  transition: all .18s;
}
.blg-filter-pill:hover,
.blg-filter-pill.is-active {
  background: #1E3A5F; border-color: #1E3A5F; color: #fff;
}
.blg-filter-pill.is-active { pointer-events: none; }
.blg-filter-count {
  background: rgba(255,255,255,.2);
  border-radius: 999px; padding: .05rem .4rem;
  font-size: .68rem;
}
.blg-filter-pill:not(.is-active) .blg-filter-count {
  background: var(--pni-gray-100); color: var(--pni-text-muted);
}

/* ── Body grid ──────────────────────────────────────────────── */
.blg-body { padding: 2.5rem 0 5rem; }
.blg-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2.5rem;
  align-items: start;
}

/* ── Featured post (first post, large) ─────────────────────── */
.blg-featured {
  background: #fff;
  border: 1px solid var(--pni-border);
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  box-shadow: var(--pni-shadow-sm);
  transition: box-shadow .22s, transform .22s;
}
.blg-featured:hover { box-shadow: var(--pni-shadow-md); transform: translateY(-2px); }
.blg-featured__img-wrap {
  overflow: hidden; aspect-ratio: 4/3; background: var(--pni-gray-100);
}
.blg-featured__img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .4s ease;
}
.blg-featured:hover .blg-featured__img { transform: scale(1.04); }
.blg-featured__placeholder {
  width: 100%; height: 100%; min-height: 280px;
  background: linear-gradient(135deg, #1E3A5F, #3A6494);
  display: flex; align-items: center; justify-content: center;
  font-size: 3.5rem;
}
.blg-featured__body {
  padding: 2rem; display: flex; flex-direction: column;
}
.blg-featured__badge {
  display: inline-flex; align-items: center; gap: .35rem;
  font-size: .65rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: #C2578F; background: #FDF5F9; border: 1px solid #F0D0E0;
  padding: .25rem .65rem; border-radius: 999px;
  margin-bottom: .9rem; width: fit-content;
}
.blg-featured__cats { display: flex; gap: .4rem; flex-wrap: wrap; margin-bottom: .6rem; }
.blg-featured__cat {
  font-size: .68rem; font-weight: 700; color: #C2578F; text-transform: uppercase; letter-spacing: .06em;
}
.blg-featured__cat:hover { color: #A3446F; }
.blg-featured__title {
  font-family: var(--pni-font-heading);
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  font-weight: 700; color: #1C0F15; line-height: 1.25;
  margin-bottom: .7rem;
}
.blg-featured__title a { color: inherit; }
.blg-featured__title a:hover { color: #C2578F; }
.blg-featured__excerpt {
  font-size: .85rem; color: #5C3D4D; line-height: 1.75;
  margin-bottom: 1.25rem; flex: 1;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.blg-featured__meta { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.blg-featured__meta-avatar {
  width: 28px; height: 28px; border-radius: 50%;
  background: linear-gradient(135deg, #C2578F, #1E3A5F);
  display: flex; align-items: center; justify-content: center;
  font-size: .68rem; font-weight: 700; color: #fff; flex-shrink: 0;
}
.blg-featured__meta-info { font-size: .76rem; color: #9A7485; }
.blg-featured__meta-sep { color: #D0BBCA; }
.blg-featured__read-link {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .82rem; font-weight: 700; color: #1E3A5F;
  border: 1.5px solid #1E3A5F; border-radius: 8px;
  padding: .55rem 1.1rem;
  transition: all .18s; width: fit-content; text-decoration: none;
}
.blg-featured__read-link:hover { background: #1E3A5F; color: #fff; }
.blg-featured__read-link svg { width: 13px; height: 13px; }

/* ── Post grid ──────────────────────────────────────────────── */
.blg-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

/* ── Blog card ──────────────────────────────────────────────── */
.blg-card {
  background: #fff;
  border: 1px solid var(--pni-border);
  border-radius: 16px;
  overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: 0 2px 8px rgba(30,58,95,.05);
  transition: box-shadow .22s, transform .22s;
  text-decoration: none; color: inherit;
}
.blg-card:hover { box-shadow: var(--pni-shadow-md); transform: translateY(-3px); }
.blg-card__img-wrap {
  overflow: hidden; aspect-ratio: 3/2; background: var(--pni-gray-100);
  position: relative;
}
.blg-card__img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .35s ease;
}
.blg-card:hover .blg-card__img { transform: scale(1.05); }
.blg-card__placeholder {
  width: 100%; height: 100%; min-height: 160px;
  background: linear-gradient(135deg, #1E3A5F 0%, #264D7A 100%);
  display: flex; align-items: center; justify-content: center; font-size: 2.5rem;
}
.blg-card__cat-badge {
  position: absolute; top: .7rem; left: .7rem;
  background: #C2578F; color: #fff; border-radius: 999px;
  font-size: .62rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  padding: .2rem .6rem;
}
.blg-card__body { padding: 1.1rem; flex: 1; display: flex; flex-direction: column; }
.blg-card__cats { display: flex; gap: .3rem; flex-wrap: wrap; margin-bottom: .4rem; }
.blg-card__cat { font-size: .65rem; font-weight: 700; color: #C2578F; text-transform: uppercase; letter-spacing: .06em; }
.blg-card__title {
  font-family: var(--pni-font-heading);
  font-size: .95rem; font-weight: 700; color: #1C0F15; line-height: 1.3;
  margin-bottom: .4rem;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.blg-card__excerpt {
  font-size: .78rem; color: #9A7485; line-height: 1.65; flex: 1; margin-bottom: .75rem;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.blg-card__foot {
  display: flex; align-items: center; justify-content: space-between;
  border-top: 1px solid #F5EDF0; padding-top: .65rem;
}
.blg-card__date { font-size: .72rem; color: #C5AABB; }
.blg-card__read {
  font-size: .7rem; font-weight: 700; color: #1E3A5F;
  display: flex; align-items: center; gap: .25rem;
  text-decoration: none;
}
.blg-card__read:hover { color: #C2578F; }
.blg-card__read svg { width: 11px; height: 11px; }

/* ── Reading time badge ─────────────────────────────────────── */
.blg-read-time {
  position: absolute; bottom: .7rem; right: .7rem;
  background: rgba(0,0,0,.55); color: #fff; border-radius: 999px;
  font-size: .62rem; font-weight: 600; padding: .18rem .55rem; backdrop-filter: blur(4px);
}

/* ── No posts ───────────────────────────────────────────────── */
.blg-empty {
  grid-column: 1 / -1; text-align: center;
  padding: 4rem 2rem; color: var(--pni-text-muted);
}
.blg-empty-ico { font-size: 3rem; margin-bottom: 1rem; opacity: .5; }
.blg-empty h3 { font-family: var(--pni-font-heading); font-size: 1.2rem; color: #1E3A5F; margin-bottom: .5rem; }

/* ── Sidebar ────────────────────────────────────────────────── */
.blg-sidebar { display: flex; flex-direction: column; gap: 1.25rem; }

.blg-widget {
  background: #fff; border: 1px solid var(--pni-border);
  border-radius: 16px; overflow: hidden;
  box-shadow: 0 2px 8px rgba(30,58,95,.04);
}
.blg-widget__head {
  padding: 1rem 1.25rem; border-bottom: 1px solid #F0E0E8;
  font-family: var(--pni-font-heading); font-size: .92rem; font-weight: 700;
  color: #1E3A5F; display: flex; align-items: center; gap: .5rem;
}
.blg-widget__head-ico { font-size: 1rem; }
.blg-widget__body { padding: 1.1rem 1.25rem; }

/* Search widget */
.blg-search-form { display: flex; gap: .4rem; }
.blg-search-input {
  flex: 1; padding: .65rem .9rem; border: 1.5px solid #D0BBCA;
  border-radius: 8px; font-size: .82rem; color: #1C0F15; outline: none;
  background: #FDFBFC; transition: border-color .18s;
}
.blg-search-input:focus { border-color: #C2578F; }
.blg-search-btn {
  padding: .65rem .95rem; background: #1E3A5F; color: #fff;
  border: none; border-radius: 8px; cursor: pointer; transition: background .18s;
  display: flex; align-items: center;
}
.blg-search-btn:hover { background: #C2578F; }
.blg-search-btn svg { width: 15px; height: 15px; }

/* Recent posts widget */
.blg-recent-list { list-style: none; display: flex; flex-direction: column; gap: .85rem; }
.blg-recent-item { display: flex; gap: .75rem; align-items: center; }
.blg-recent-thumb {
  width: 52px; height: 52px; border-radius: 8px; flex-shrink: 0; overflow: hidden;
  background: linear-gradient(135deg, #1E3A5F, #3A6494);
}
.blg-recent-thumb img { width: 100%; height: 100%; object-fit: cover; }
.blg-recent-thumb-ph {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 1.2rem;
}
.blg-recent-title {
  font-size: .8rem; font-weight: 700; color: #1E3A5F; line-height: 1.3; margin-bottom: .2rem;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.blg-recent-title a { color: inherit; }
.blg-recent-title a:hover { color: #C2578F; }
.blg-recent-date { font-size: .68rem; color: #C5AABB; }

/* Categories widget */
.blg-cat-list { list-style: none; display: flex; flex-direction: column; gap: .1rem; }
.blg-cat-item a {
  display: flex; align-items: center; justify-content: space-between;
  padding: .5rem .4rem; border-radius: 8px;
  font-size: .82rem; color: #5C3D4D; text-decoration: none;
  transition: background .15s, color .15s;
}
.blg-cat-item a:hover { background: #FDF5F9; color: #C2578F; }
.blg-cat-count {
  background: var(--pni-gray-100); color: var(--pni-text-muted);
  border-radius: 999px; font-size: .65rem; font-weight: 700;
  padding: .1rem .45rem;
}

/* Tags widget */
.blg-tag-cloud { display: flex; flex-wrap: wrap; gap: .4rem; }
.blg-tag {
  display: inline-block; padding: .28rem .7rem;
  border: 1px solid #D0BBCA; border-radius: 999px;
  font-size: .72rem; color: #5C3D4D; text-decoration: none;
  transition: all .15s;
}
.blg-tag:hover { background: #1E3A5F; border-color: #1E3A5F; color: #fff; }

/* Newsletter widget */
.blg-nl-widget {
  background: linear-gradient(135deg, #1E3A5F, #264D7A);
  border-radius: 16px; padding: 1.4rem; color: #fff;
}
.blg-nl-title { font-family: var(--pni-font-heading); font-size: 1rem; font-weight: 700; margin-bottom: .35rem; }
.blg-nl-sub { font-size: .78rem; color: rgba(255,255,255,.55); margin-bottom: .9rem; }
.blg-nl-form { display: flex; flex-direction: column; gap: .45rem; }
.blg-nl-input {
  padding: .65rem .9rem; border: 1.5px solid rgba(255,255,255,.2);
  border-radius: 8px; background: rgba(255,255,255,.1); color: #fff;
  font-size: .82rem; outline: none; transition: border-color .18s;
}
.blg-nl-input::placeholder { color: rgba(255,255,255,.4); }
.blg-nl-input:focus { border-color: rgba(255,255,255,.5); }
.blg-nl-btn {
  padding: .65rem; background: #C2578F; color: #fff; border: none;
  border-radius: 8px; font-size: .82rem; font-weight: 700; cursor: pointer;
  transition: background .18s;
}
.blg-nl-btn:hover { background: #A3446F; }

/* ════════════════════════════════════════════════════════════
   SINGLE POST
   ════════════════════════════════════════════════════════════ */

/* Hero */
.sgl-hero {
  position: relative; overflow: hidden;
  background: #1E3A5F;
}
.sgl-hero__img-wrap {
  position: relative; max-height: 520px; overflow: hidden;
}
.sgl-hero__img { width: 100%; height: 100%; object-fit: cover; display: block; max-height: 520px; }
.sgl-hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(12,26,46,.85) 0%, rgba(12,26,46,.25) 60%, transparent 100%);
}
.sgl-hero__content {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 2rem 0 2.5rem;
}
.sgl-hero__content-inner { max-width: 820px; }

/* Hero without featured image */
.sgl-hero--text {
  background: linear-gradient(140deg, #1E3A5F, #264D7A);
  padding: 3.5rem 0 4rem;
}
.sgl-hero--text .sgl-hero__content { position: static; padding: 0; }
.sgl-hero--text .sgl-hero__content-inner { max-width: 820px; }

.sgl-hero__cats { display: flex; gap: .4rem; flex-wrap: wrap; margin-bottom: .6rem; }
.sgl-hero__cat {
  font-size: .65rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
  color: #D4729F; background: rgba(212,114,159,.15); border: 1px solid rgba(212,114,159,.25);
  padding: .22rem .65rem; border-radius: 999px; text-decoration: none;
}
.sgl-hero__cat:hover { background: rgba(212,114,159,.3); color: #F0A8C8; }

.sgl-hero__title {
  font-family: var(--pni-font-heading);
  font-size: clamp(1.65rem, 4vw, 2.8rem);
  color: #fff; font-weight: 700; line-height: 1.2; margin-bottom: .85rem;
}
.sgl-hero__meta {
  display: flex; align-items: center; gap: .75rem; flex-wrap: wrap;
  font-size: .78rem; color: rgba(255,255,255,.55);
}
.sgl-hero__meta-sep { color: rgba(255,255,255,.25); }
.sgl-hero__meta strong { color: rgba(255,255,255,.8); font-weight: 600; }
.sgl-hero__read-time {
  display: inline-flex; align-items: center; gap: .3rem;
  background: rgba(255,255,255,.1); border-radius: 999px;
  padding: .2rem .65rem; font-size: .72rem;
}

/* Progress bar */
.sgl-progress-bar {
  position: fixed; top: 0; left: 0; z-index: 9999;
  height: 3px; background: linear-gradient(90deg, #C2578F, #D4729F);
  width: 0%; transition: width .1s linear;
  pointer-events: none;
}

/* Layout */
.sgl-body { padding: 2.5rem 0 5rem; background: var(--pni-bg-secondary); }
.sgl-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 2.5rem;
  align-items: start;
}

/* Main content */
.sgl-content-wrap {
  background: #fff; border: 1px solid var(--pni-border);
  border-radius: 20px; overflow: hidden;
  box-shadow: 0 2px 12px rgba(30,58,95,.06);
}
.sgl-content-inner { padding: 2.5rem; }

/* Prose typography */
.sgl-prose { line-height: 1.85; color: #3A2535; font-size: .96rem; }
.sgl-prose h2 {
  font-family: var(--pni-font-heading); font-size: 1.4rem; font-weight: 700;
  color: #1E3A5F; margin: 2.2rem 0 .85rem; line-height: 1.25;
  padding-top: 1rem; border-top: 1px solid #F0E0E8;
}
.sgl-prose h2:first-child { border-top: none; padding-top: 0; }
.sgl-prose h3 {
  font-family: var(--pni-font-heading); font-size: 1.1rem; font-weight: 700;
  color: #1E3A5F; margin: 1.75rem 0 .65rem;
}
.sgl-prose h4 { font-size: .95rem; font-weight: 700; color: #1E3A5F; margin: 1.5rem 0 .5rem; }
.sgl-prose p { margin-bottom: 1.2rem; }
.sgl-prose p:last-child { margin-bottom: 0; }
.sgl-prose a { color: #C2578F; text-decoration: underline; text-underline-offset: 2px; }
.sgl-prose a:hover { color: #A3446F; }
.sgl-prose ul, .sgl-prose ol { margin: 1rem 0 1.2rem 1.5rem; }
.sgl-prose li { margin-bottom: .5rem; line-height: 1.75; }
.sgl-prose ul li::marker { color: #C2578F; }
.sgl-prose ol li::marker { color: #C2578F; font-weight: 700; }
.sgl-prose blockquote {
  border-left: 4px solid #C2578F; margin: 1.75rem 0;
  padding: 1.1rem 1.5rem; background: #FDF5F9;
  border-radius: 0 12px 12px 0; font-style: italic;
  color: #5C3D4D;
}
.sgl-prose blockquote p { margin: 0; font-size: 1.02rem; }
.sgl-prose img { border-radius: 12px; margin: 1.5rem 0; max-width: 100%; height: auto; }
.sgl-prose figure { margin: 1.75rem 0; }
.sgl-prose figcaption { text-align: center; font-size: .76rem; color: #9A7485; margin-top: .5rem; }
.sgl-prose pre {
  background: #1C0F15; color: #F0D0E0; border-radius: 12px;
  padding: 1.25rem; overflow-x: auto; font-size: .84rem; margin: 1.5rem 0;
}
.sgl-prose code {
  background: #F9EFF4; color: #A3446F; border-radius: 4px;
  padding: .1rem .35rem; font-size: .85em;
}
.sgl-prose pre code { background: none; color: inherit; padding: 0; }
.sgl-prose hr { border: none; border-top: 1px solid #F0E0E8; margin: 2rem 0; }
.sgl-prose table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: .88rem; }
.sgl-prose th { background: #1E3A5F; color: #fff; padding: .65rem .85rem; text-align: left; font-weight: 700; }
.sgl-prose td { padding: .6rem .85rem; border-bottom: 1px solid #F0E0E8; color: #3A2535; }
.sgl-prose tr:nth-child(even) td { background: #FDF5F9; }

/* Tags on post */
.sgl-post-tags { padding: 1.25rem 2.5rem; border-top: 1px solid #F0E0E8; display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.sgl-post-tags-label { font-size: .72rem; font-weight: 700; color: #9A7485; text-transform: uppercase; letter-spacing: .06em; margin-right: .25rem; }
.sgl-post-tag {
  display: inline-block; padding: .25rem .7rem;
  border: 1px solid #D0BBCA; border-radius: 999px;
  font-size: .72rem; color: #5C3D4D; text-decoration: none;
  transition: all .15s;
}
.sgl-post-tag:hover { background: #1E3A5F; border-color: #1E3A5F; color: #fff; }

/* Share bar */
.sgl-share { padding: 1.25rem 2.5rem; border-top: 1px solid #F0E0E8; display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; }
.sgl-share-label { font-size: .72rem; font-weight: 700; color: #9A7485; text-transform: uppercase; letter-spacing: .06em; }
.sgl-share-btn {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .38rem .85rem; border-radius: 8px; border: none; cursor: pointer;
  font-size: .75rem; font-weight: 700; transition: all .18s; text-decoration: none;
}
.sgl-share-btn--twitter  { background: #000; color: #fff; }
.sgl-share-btn--facebook { background: #1877F2; color: #fff; }
.sgl-share-btn--copy     { background: var(--pni-gray-100); color: #1E3A5F; border: 1.5px solid #D0BBCA; }
.sgl-share-btn:hover { opacity: .85; transform: translateY(-1px); }
.sgl-share-btn svg { width: 13px; height: 13px; }

/* Author box */
.sgl-author {
  margin: 0 2.5rem 2.5rem;
  background: #F7F4F6; border: 1px solid #EAD8E3;
  border-radius: 16px; padding: 1.5rem;
  display: flex; gap: 1.1rem;
}
.sgl-author__avatar {
  width: 64px; height: 64px; border-radius: 50%; flex-shrink: 0; overflow: hidden;
  background: linear-gradient(135deg, #C2578F, #1E3A5F);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--pni-font-heading); font-size: 1.5rem; font-weight: 700; color: #fff;
}
.sgl-author__avatar img { width: 100%; height: 100%; object-fit: cover; }
.sgl-author__info { flex: 1; }
.sgl-author__label { font-size: .65rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #C2578F; margin-bottom: .2rem; }
.sgl-author__name { font-family: var(--pni-font-heading); font-size: 1rem; font-weight: 700; color: #1E3A5F; margin-bottom: .35rem; }
.sgl-author__bio { font-size: .8rem; color: #5C3D4D; line-height: 1.65; }

/* Post nav */
.sgl-post-nav {
  display: grid; grid-template-columns: 1fr 1fr;
  border-top: 1px solid #F0E0E8;
}
.sgl-post-nav__item {
  padding: 1.25rem 1.5rem; text-decoration: none; transition: background .18s;
  display: flex; flex-direction: column; gap: .25rem;
}
.sgl-post-nav__item:hover { background: #FDF5F9; }
.sgl-post-nav__item--next { border-left: 1px solid #F0E0E8; text-align: right; align-items: flex-end; }
.sgl-post-nav__dir {
  font-size: .65rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: #9A7485; display: flex; align-items: center; gap: .3rem;
}
.sgl-post-nav__dir svg { width: 11px; height: 11px; }
.sgl-post-nav__title { font-size: .82rem; font-weight: 700; color: #1E3A5F; line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* TOC sidebar widget */
.blg-toc-list { list-style: none; }
.blg-toc-item { border-left: 2px solid #F0E0E8; padding-left: .75rem; margin-bottom: .25rem; }
.blg-toc-item.is-active { border-left-color: #C2578F; }
.blg-toc-link {
  font-size: .78rem; color: #9A7485; text-decoration: none; line-height: 1.5;
  display: block; padding: .2rem 0; transition: color .15s;
}
.blg-toc-link:hover, .blg-toc-item.is-active .blg-toc-link { color: #C2578F; }
.blg-toc-link.is-h3 { padding-left: .85rem; font-size: .72rem; }

/* Sticky sidebar */
.blg-sidebar--sticky .blg-widget:first-child { position: sticky; top: 80px; }

/* ── Related posts ───────────────────────────────────────────── */
.sgl-related { padding: 3rem 0 5rem; background: var(--pni-bg-secondary); }
.sgl-related__head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1.5rem;
}
.sgl-related__title {
  font-family: var(--pni-font-heading); font-size: 1.2rem; font-weight: 700; color: #1E3A5F;
}
.sgl-related__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }

/* ── Comments ────────────────────────────────────────────────── */
.sgl-comments { padding: 0 2.5rem 2.5rem; }
.sgl-comments .comment-respond { border-top: 1px solid #F0E0E8; padding-top: 1.5rem; margin-top: 1.5rem; }
.sgl-comments .comment-reply-title { font-family: var(--pni-font-heading); font-size: 1.05rem; font-weight: 700; color: #1E3A5F; margin-bottom: 1rem; }
.sgl-comments .comment-form label { display: block; font-size: .72rem; font-weight: 700; letter-spacing: .04em; color: #5C3D4D; margin-bottom: .3rem; }
.sgl-comments .comment-form input[type="text"],
.sgl-comments .comment-form input[type="email"],
.sgl-comments .comment-form input[type="url"],
.sgl-comments .comment-form textarea {
  width: 100%; padding: .72rem 1rem; border: 1.5px solid #D0BBCA; border-radius: 10px;
  font-size: .85rem; color: #1C0F15; background: #FDFBFC; outline: none;
  transition: border-color .18s; margin-bottom: .85rem; font-family: inherit;
}
.sgl-comments .comment-form input:focus,
.sgl-comments .comment-form textarea:focus { border-color: #C2578F; box-shadow: 0 0 0 3px rgba(194,87,143,.1); }
.sgl-comments .comment-form textarea { min-height: 100px; resize: vertical; }
.sgl-comments .comment-form .submit {
  padding: .75rem 1.75rem; background: linear-gradient(135deg,#C2578F,#A3446F);
  color: #fff; border: none; border-radius: 10px;
  font-size: .88rem; font-weight: 700; cursor: pointer; transition: all .18s;
}
.sgl-comments .comment-form .submit:hover { background: linear-gradient(135deg,#A3446F,#1E3A5F); }
.comment-list { list-style: none; }
.comment-list .comment { border-top: 1px solid #F0E0E8; padding: 1.1rem 0; }
.comment-list .comment:first-child { border-top: none; }
.comment-author .avatar { border-radius: 50%; width: 36px; height: 36px; }
.comment-meta { font-size: .72rem; color: #9A7485; margin-bottom: .5rem; }
.comment-content p { font-size: .85rem; color: #3A2535; line-height: 1.7; }
.reply a { font-size: .72rem; color: #C2578F; font-weight: 700; }

/* ── Archive / Search header ────────────────────────────────── */
.blg-archive-badge {
  display: inline-flex; align-items: center; gap: .4rem;
  background: #FDF5F9; border: 1px solid #F0D0E0;
  color: #C2578F; border-radius: 999px;
  padding: .28rem .9rem; font-size: .68rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  margin-bottom: .6rem;
}
.blg-archive-title {
  font-family: var(--pni-font-heading);
  font-size: clamp(1.8rem, 4vw, 2.8rem); color: #fff; font-weight: 700;
}
.blg-archive-desc { font-size: .88rem; color: rgba(255,255,255,.5); margin-top: .4rem; }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .blg-layout, .sgl-layout { grid-template-columns: 1fr; }
  .blg-sidebar { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
  .sgl-related__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .blg-featured { grid-template-columns: 1fr; }
  .blg-featured__img-wrap { aspect-ratio: 16/9; }
  .blg-grid { grid-template-columns: 1fr; }
  .blg-sidebar { grid-template-columns: 1fr; }
  .sgl-content-inner { padding: 1.5rem; }
  .sgl-share, .sgl-post-tags, .sgl-author { margin-left: 1.5rem; margin-right: 1.5rem; }
  .sgl-author { flex-direction: column; }
  .sgl-comments { padding: 0 1.5rem 1.5rem; }
  .sgl-related__grid { grid-template-columns: 1fr; }
  .sgl-post-nav { grid-template-columns: 1fr; }
  .sgl-post-nav__item--next { border-left: none; border-top: 1px solid #F0E0E8; text-align: left; align-items: flex-start; }
  .blg-hero h1 { font-size: 1.8rem; }
}
@media (max-width: 480px) {
  .blg-featured__body { padding: 1.25rem; }
  .sgl-related__grid { grid-template-columns: 1fr; }
}
