/* ==========================================================================
   Pyzen Technologies — Modern Blog Article & Reading Architecture
   Incorporating Webkul Aside Architecture, AI Platform Launchers,
   and Viewport-Fitting Table of Contents with Pyzen Design Language.
   ========================================================================== */

/* ---------------- Top Reading Progress Bar ---------------- */
.pyzen-read-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--blue, #2F6BFF), var(--violet, #7B6CFF) 55%, var(--teal, #5EF2E1));
  z-index: 99999;
  transition: width 0.12s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 0 10px rgba(94, 242, 225, 0.7);
}

/* ---------------- Blog Hero Header ---------------- */
.pyzen-article-hero {
  position: relative;
  background: var(--ink-950, #05060D);
  color: var(--on-dark, #EEF1FF);
  padding: clamp(36px, 5vw, 68px) 0 clamp(28px, 4vw, 48px);
  overflow: hidden;
  border-bottom: 1px solid var(--line-dark, rgba(190, 205, 255, 0.12));
}

.pyzen-article-hero::before {
  content: "";
  position: absolute;
  top: -120px;
  right: -60px;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(47, 107, 255, 0.16) 0%, rgba(94, 242, 225, 0.04) 50%, transparent 75%);
  pointer-events: none;
  filter: blur(50px);
}

.pyzen-article-hero::after {
  content: "";
  position: absolute;
  bottom: -40px;
  left: 5%;
  width: 440px;
  height: 280px;
  background: radial-gradient(circle, rgba(123, 108, 255, 0.1) 0%, transparent 70%);
  pointer-events: none;
  filter: blur(60px);
}

.pyzen-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1160px;
  margin: 0 auto;
}

/* Breadcrumbs matching Pyzen site style */
.pyzen-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--f-label, sans-serif);
  font-size: 0.8125rem;
  color: var(--on-dark-3, #7F8AB5);
  margin-bottom: 18px;
}

.pyzen-breadcrumbs a {
  color: var(--on-dark-2, #A3ACCF);
  text-decoration: none;
  transition: color 0.2s ease;
}

.pyzen-breadcrumbs a:hover {
  color: var(--teal, #5EF2E1);
}

.pyzen-breadcrumbs .crumb-sep {
  opacity: 0.45;
  font-size: 0.75rem;
}

.pyzen-breadcrumbs .crumb-current {
  color: var(--on-dark-3, #7F8AB5);
  max-width: 320px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Meta chip and read-time */
.pyzen-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.pyzen-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 30px;
  padding: 0 14px 0 10px;
  border-radius: 999px;
  border: 1px solid var(--line-dark-2, rgba(190, 205, 255, 0.24));
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-family: var(--f-label, sans-serif);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--on-dark-2, #A3ACCF);
  text-decoration: none;
}

.pyzen-chip .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal, #5EF2E1);
  box-shadow: 0 0 8px rgba(94, 242, 225, 0.6);
  animation: pyzen-ping 2.4s ease-out infinite;
}

@keyframes pyzen-ping {
  0% { box-shadow: 0 0 0 0 rgba(94, 242, 225, 0.5); }
  70%, 100% { box-shadow: 0 0 0 8px rgba(94, 242, 225, 0); }
}

.pyzen-meta-detail {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--f-mono, monospace);
  font-size: 0.75rem;
  color: var(--on-dark-3, #7F8AB5);
}

.pyzen-meta-detail svg {
  width: 14px;
  height: 14px;
  opacity: 0.75;
}

/* Post Title with Instrument Serif emphasis */
.pyzen-article-title {
  font-family: var(--f-display, sans-serif);
  font-size: clamp(2rem, 3.8vw, 3.1rem);
  font-weight: 700;
  line-height: 1.16;
  letter-spacing: -0.03em;
  color: #FFFFFF;
  margin: 0 0 16px;
}

.pyzen-article-title em {
  font-style: italic;
  font-family: var(--f-serif, Georgia, serif);
  font-weight: 400;
  color: var(--teal, #5EF2E1);
  text-shadow: 0 0 50px rgba(94, 242, 225, 0.35);
}

/* Article Subtitle / Excerpt */
.pyzen-article-lead {
  font-family: var(--f-body, sans-serif);
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  line-height: 1.6;
  color: var(--on-dark-2, #A3ACCF);
  max-width: 900px;
  margin: 0;
}

/* ---------------- 3-Zone Article Layout ---------------- */
.pyzen-article-container {
  max-width: 1420px;
  margin: 0 auto;
  padding: clamp(28px, 3.5vw, 48px) clamp(16px, 2.5vw, 36px);
}

.pyzen-article-grid {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr) 330px;
  gap: clamp(20px, 2.5vw, 36px);
  align-items: start;
}

/* ---------------- LEFT RAIL: 70/30 Optimal UX Editorial Stack ---------------- */
.pyzen-rail-left {
  position: sticky;
  top: 88px;
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: calc(100vh - 105px); /* Strictly fits laptop viewports */
  overflow-y: auto;
  scrollbar-width: none;
}

.pyzen-rail-left::-webkit-scrollbar {
  display: none;
}

/* 1. Primary Table of Contents Card (70% Visual Weight) */
.pyzen-toc-card {
  background: #FFFFFF;
  border: 1px solid var(--line, rgba(10, 12, 24, 0.08));
  border-radius: var(--r-md, 16px);
  padding: 16px 14px 12px;
  box-shadow: 0 4px 16px -6px rgba(10, 12, 24, 0.05);
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
}

.pyzen-toc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line, rgba(10, 12, 24, 0.08));
  flex-shrink: 0;
}

.pyzen-toc-title {
  font-family: var(--f-display, sans-serif);
  font-size: 0.78125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text, #0A0C18);
  display: flex;
  align-items: center;
  gap: 6px;
}

.pyzen-toc-title svg {
  color: var(--blue, #2F6BFF);
}

.pyzen-toc-progress-val {
  font-family: var(--f-mono, monospace);
  font-size: 0.7rem;
  color: var(--blue, #2F6BFF);
  font-weight: 700;
  background: rgba(47, 107, 255, 0.08);
  padding: 2px 5px;
  border-radius: 4px;
}

/* Expanded TOC Nav (70% Vertical Budget - Shows 7-10 Headings Cleanly) */
.pyzen-toc-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-height: clamp(260px, 45vh, 440px); /* 70% height of rail */
  overflow-y: auto;
  padding-right: 4px;
  scrollbar-width: thin;
  scrollbar-color: rgba(10, 12, 24, 0.15) transparent;
  flex-grow: 1;
}

.pyzen-toc-nav::-webkit-scrollbar {
  width: 3px;
}
.pyzen-toc-nav::-webkit-scrollbar-thumb {
  background: rgba(10, 12, 24, 0.15);
  border-radius: 3px;
}

.pyzen-toc-link {
  position: relative;
  display: block;
  font-family: var(--f-body, sans-serif);
  font-size: 0.8125rem;
  line-height: 1.38;
  color: var(--text-2, #41455A);
  text-decoration: none;
  padding: 5px 8px 5px 12px;
  border-radius: 6px;
  border-left: 2px solid transparent;
  transition: all 0.16s ease;
  white-space: normal;
  word-break: break-word;
}

.pyzen-toc-link:hover {
  color: var(--blue, #2F6BFF);
  background: var(--paper-2, #F3F4F7);
}

.pyzen-toc-link.is-active {
  color: var(--blue, #2F6BFF);
  font-weight: 600;
  background: rgba(47, 107, 255, 0.07);
  border-left-color: var(--blue, #2F6BFF);
}

.pyzen-toc-link.level-h3 {
  padding-left: 20px;
  font-size: 0.75rem;
  opacity: 0.85;
}

/* 2. Bottom 30%: Compact Editorial Trending Read Card */
.pyzen-sidebar-feature {
  background: #FFFFFF;
  border: 1px solid var(--line, rgba(10, 12, 24, 0.08));
  border-radius: var(--r-md, 16px);
  padding: 12px 14px;
  box-shadow: 0 4px 16px -6px rgba(10, 12, 24, 0.05);
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-shrink: 0;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  text-decoration: none;
}

.pyzen-sidebar-feature:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px -8px rgba(10, 12, 24, 0.12);
  border-color: rgba(47, 107, 255, 0.3);
}

.pyzen-feature-tag-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.pyzen-feature-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--f-mono, monospace);
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--blue, #2F6BFF);
  background: rgba(47, 107, 255, 0.08);
  padding: 2px 7px;
  border-radius: 999px;
}

.pyzen-feature-badge .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--blue, #2F6BFF);
  animation: pyzen-pulse 1.8s infinite;
}

.pyzen-feature-time {
  font-family: var(--f-mono, monospace);
  font-size: 0.625rem;
  color: var(--text-3, #63677D);
}

/* Horizontal media layout: compact thumbnail + title & link */
.pyzen-feature-body {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pyzen-feature-thumb {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  border-radius: 8px;
  overflow: hidden;
  background: #0B0E1E;
  position: relative;
}

.pyzen-feature-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.pyzen-sidebar-feature:hover .pyzen-feature-thumb img {
  transform: scale(1.08);
}

.pyzen-feature-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  flex: 1;
}

.pyzen-feature-title {
  font-family: var(--f-display, sans-serif);
  font-size: 0.78125rem;
  font-weight: 700;
  line-height: 1.32;
  color: var(--text, #0A0C18);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pyzen-feature-link-text {
  font-family: var(--f-display, sans-serif);
  font-size: 0.71875rem;
  font-weight: 700;
  color: var(--blue, #2F6BFF);
  display: inline-flex;
  align-items: center;
  gap: 3px;
  transition: gap 0.15s ease;
}

.pyzen-sidebar-feature:hover .pyzen-feature-link-text {
  gap: 6px;
  color: var(--blue-700, #1742C0);
}

/* ---------------- CENTER COLUMN: Content & Typography ---------------- */
.pyzen-main-article {
  min-width: 0;
  position: relative;
}

/* Featured Hero Image */
.pyzen-featured-media {
  margin: 0 0 28px;
  border-radius: var(--r-lg, 20px);
  overflow: hidden;
  box-shadow: 0 14px 36px -12px rgba(10, 12, 24, 0.1);
  border: 1px solid var(--line, rgba(10, 12, 24, 0.08));
  background: var(--paper-2, #F3F4F7);
}

.pyzen-featured-media img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  aspect-ratio: 16 / 9;
}

.pyzen-featured-caption {
  padding: 8px 14px;
  font-family: var(--f-mono, monospace);
  font-size: 0.75rem;
  color: var(--text-3, #63677D);
  background: #FFFFFF;
  border-top: 1px solid var(--line, rgba(10, 12, 24, 0.08));
}

/* Article Typography (Decently Big, High Readability) */
.pyzen-article-content {
  font-family: var(--f-body, sans-serif);
  font-size: 1.15rem; /* Decently big reading font */
  line-height: 1.85;
  color: #1A1F36;
}

.pyzen-article-content p {
  margin: 0 0 1.6em;
}

.pyzen-article-content h2 {
  font-family: var(--f-display, sans-serif);
  font-size: clamp(1.7rem, 2.3vw, 2.15rem);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.025em;
  color: var(--text, #0A0C18);
  margin: 2.1em 0 0.75em;
  padding-top: 0.4em;
  border-top: 1px solid var(--line, rgba(10, 12, 24, 0.08));
  scroll-margin-top: 95px;
}

.pyzen-article-content h2:first-of-type {
  border-top: none;
  margin-top: 0.5em;
}

.pyzen-article-content h3 {
  font-family: var(--f-display, sans-serif);
  font-size: clamp(1.25rem, 1.7vw, 1.5rem);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.015em;
  color: var(--text, #0A0C18);
  margin: 1.6em 0 0.6em;
  scroll-margin-top: 95px;
}

.pyzen-article-content ul,
.pyzen-article-content ol {
  margin: 0 0 1.75em;
  padding-left: 1.5em;
}

.pyzen-article-content li {
  margin-bottom: 0.6em;
}

.pyzen-article-content strong {
  font-weight: 700;
  color: var(--text, #0A0C18);
}

.pyzen-article-content a {
  color: var(--blue, #2F6BFF);
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
  transition: color 0.15s ease;
}

.pyzen-article-content a:hover {
  color: var(--blue-700, #1742C0);
}

/* Blockquotes */
.pyzen-article-content blockquote {
  position: relative;
  margin: 2em 0;
  padding: 20px 26px;
  background: var(--paper-2, #F3F4F7);
  border-left: 4px solid var(--blue, #2F6BFF);
  border-radius: 0 var(--r-md, 16px) var(--r-md, 16px) 0;
  font-family: var(--f-serif, Georgia, serif);
  font-size: 1.25rem;
  font-style: italic;
  line-height: 1.6;
  color: var(--text, #0A0C18);
}

/* Callout Boxes */
.pyzen-callout {
  margin: 2em 0;
  padding: 18px 20px;
  border-radius: var(--r-md, 16px);
  display: flex;
  gap: 14px;
  align-items: flex-start;
  font-size: 1.025rem;
  line-height: 1.65;
}

.pyzen-callout svg {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  margin-top: 3px;
}

.pyzen-callout-info {
  background: rgba(47, 107, 255, 0.06);
  border: 1px solid rgba(47, 107, 255, 0.18);
  color: #172B6B;
}
.pyzen-callout-info svg { color: var(--blue, #2F6BFF); }

.pyzen-callout-tip {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.22);
  color: #064E3B;
}
.pyzen-callout-tip svg { color: #10B981; }

.pyzen-callout-warning {
  background: rgba(245, 158, 11, 0.09);
  border: 1px solid rgba(245, 158, 11, 0.22);
  color: #78350F;
}
.pyzen-callout-warning svg { color: #F59E0B; }

/* Code Blocks with copy button */
.pyzen-code-wrapper {
  margin: 2em 0;
  background: #060810;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--r-md, 16px);
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.pyzen-code-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-family: var(--f-mono, monospace);
  font-size: 0.72rem;
  color: var(--on-dark-3, #7F8AB5);
}

.pyzen-code-dots {
  display: flex;
  gap: 5px;
}

.pyzen-code-dots span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
}
.pyzen-code-dots span:nth-child(1) { background: #FF5F56; }
.pyzen-code-dots span:nth-child(2) { background: #FFBD2E; }
.pyzen-code-dots span:nth-child(3) { background: #27C93F; }

.pyzen-code-copy-btn {
  background: transparent;
  border: none;
  color: var(--on-dark-2, #A3ACCF);
  cursor: pointer;
  font-family: var(--f-mono, monospace);
  font-size: 0.72rem;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.pyzen-code-copy-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #FFFFFF;
}

.pyzen-code-wrapper pre {
  margin: 0;
  padding: 16px 18px;
  overflow-x: auto;
  font-family: var(--f-mono, monospace);
  font-size: 0.88rem;
  line-height: 1.6;
  color: #E2E8F0;
}

/* Comparison Table */
.pyzen-table-wrap {
  margin: 2em 0;
  overflow-x: auto;
  border: 1px solid var(--line, rgba(10, 12, 24, 0.1));
  border-radius: var(--r-md, 16px);
}

.pyzen-article-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  text-align: left;
}

.pyzen-article-content th {
  background: var(--paper-2, #F3F4F7);
  font-family: var(--f-display, sans-serif);
  font-weight: 700;
  color: var(--text, #0A0C18);
  padding: 12px 14px;
  border-bottom: 2px solid var(--line, rgba(10, 12, 24, 0.1));
}

.pyzen-article-content td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line, rgba(10, 12, 24, 0.07));
  color: var(--text-2, #41455A);
}

/* ---------------- RIGHT RAIL: WEBKUL-INSPIRED ASIDE ARCHITECTURE ---------------- */
.wk-blog-aside {
  position: sticky;
  top: 88px;
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-height: calc(100vh - 105px); /* Strictly fits laptop viewports */
  overflow-y: auto;
  scrollbar-width: none;
}

.wk-blog-aside::-webkit-scrollbar {
  display: none;
}

.wk-blog-aside-inner {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Base Aside Card */
.wk-aside-card {
  background: #FFFFFF;
  border: 1px solid var(--line, rgba(10, 12, 24, 0.08));
  border-radius: var(--r-md, 16px);
  padding: 16px;
  box-shadow: 0 4px 16px -6px rgba(10, 12, 24, 0.05);
}

.wk-aside-title {
  font-family: var(--f-display, sans-serif);
  font-size: 0.90625rem;
  font-weight: 700;
  color: var(--text, #0A0C18);
  margin: 0 0 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* 1. Author Card */
.wk-author-card {
  padding: 16px;
}

.wk-story-author {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.wk-author-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.story-author-link img {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  background: #EEE;
  border: 2px solid rgba(47, 107, 255, 0.2);
}

.wk-story-author-block {
  display: flex;
  flex-direction: column;
}

.wk-story-author-block a {
  text-decoration: none;
}

.wk-story-author-block author-name.--name,
.wk-story-author-block .--name {
  font-family: var(--f-display, sans-serif);
  font-size: 0.96875rem;
  font-weight: 800;
  color: var(--text, #0A0C18);
  display: inline-block;
  transition: color 0.2s ease;
}

.wk-story-author-block a:hover .--name {
  color: var(--blue, #2F6BFF);
}

.wk-author-meta.wk-author-designation {
  font-family: var(--f-label, sans-serif);
  font-size: 0.75rem;
  color: var(--text-3, #63677D);
  margin: 2px 0 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
}

.wk-separator {
  opacity: 0.4;
}

wk-badge,
.--wk-author-achievements-poser {
  background: rgba(47, 107, 255, 0.08);
  color: var(--blue, #2F6BFF);
  padding: 2px 7px;
  border-radius: 4px;
  font-family: var(--f-mono, monospace);
  font-size: 0.6875rem;
  font-weight: 600;
  display: inline-block;
}

.wk-rh-revision-panel-wrap {
  padding-top: 10px;
  border-top: 1px solid var(--line, rgba(10, 12, 24, 0.06));
}

.wk-rh-revision_panel {
  list-style: none;
  padding: 0;
  margin: 0;
  font-family: var(--f-mono, monospace);
  font-size: 0.71875rem;
  color: var(--text-3, #63677D);
}

.wk-rh-revision-by-author {
  display: inline;
  margin-left: 4px;
}

.wk-rh-revision-by-author a {
  color: var(--text-2, #41455A);
  text-decoration: none;
  font-weight: 600;
}

/* 2. Pinned Sticky Container */
.wk-blog-aside-sticky {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* 2a. Share Card (Clean, balanced toolbar) */
.wk-share-card {
  padding: 16px;
}

.wk-bar-share {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.wk-bar-left-save,
.wk-bar-right-share {
  display: flex;
  align-items: center;
  gap: 6px;
}

.wk-bar-icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: var(--paper-2, #F3F4F7);
  color: var(--text-2, #41455A);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: 1px solid var(--line, rgba(10, 12, 24, 0.08));
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.wk-bar-icon svg {
  width: 17px;
  height: 17px;
}

.wk-bar-icon:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.wk-bar-icon-index:hover {
  background: #EEF2FF;
  border-color: var(--blue, #2F6BFF);
  color: var(--blue, #2F6BFF);
}

.wk-bar-icon-save:hover,
.wk-bar-icon-save.is-saved {
  background: var(--blue, #2F6BFF);
  border-color: var(--blue, #2F6BFF);
  color: #FFFFFF;
}

.wk-bar-share-icon-twitter:hover {
  background: #000000;
  border-color: #000000;
  color: #FFFFFF;
}

.wk-bar-share-icon-linkedin:hover {
  background: #0A66C2;
  border-color: #0A66C2;
  color: #FFFFFF;
}

.wk-bar-share-icon-facebook:hover {
  background: #25D366;
  border-color: #25D366;
  color: #FFFFFF;
}

.wk-bar-share-icon-copy-url:hover,
.wk-bar-share-icon-copy-url.copied {
  background: var(--blue, #2F6BFF);
  border-color: var(--blue, #2F6BFF);
  color: #FFFFFF;
}

/* 2b. Summarize with AI Card (Official SVG Brandmarks) */
.wk-ai-card {
  padding: 16px;
}

.wk-ai-list {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.wk-ai-item {
  position: relative;
  height: 42px;
  flex: 1;
  max-width: 52px;
  border-radius: 10px;
  background: var(--paper-2, #F3F4F7);
  border: 1px solid var(--line, rgba(10, 12, 24, 0.08));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.wk-ai-item .wk-ai-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
}

.wk-ai-item .wk-ai-icon svg {
  width: 22px;
  height: 22px;
  display: block;
}

.wk-ai-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

.wk-ai-item.wk-ai-chatgpt:hover {
  background: #F0FDF4;
  border-color: #10A37F;
}

.wk-ai-item.wk-ai-claude:hover {
  background: #FFFBEB;
  border-color: #D97706;
}

.wk-ai-item.wk-ai-perplexity:hover {
  background: #ECFEFF;
  border-color: #20B8CD;
}

.wk-ai-item.wk-ai-gemini:hover {
  background: #EEF2FF;
  border-color: #4E82EE;
}

.wk-ai-item.wk-ai-manus:hover {
  background: #FEF2F2;
  border-color: #EF4444;
}

/* 2c. Support / Architecture Advisory Card */
.wk-support-card {
  background: linear-gradient(135deg, var(--ink-950, #05060D), #0D1326);
  border: 1px solid rgba(47, 107, 255, 0.25);
  color: #FFFFFF;
  padding: 16px;
  border-radius: var(--r-md, 16px);
}

.wk-support-title {
  font-family: var(--f-display, sans-serif);
  font-size: 0.9375rem;
  font-weight: 800;
  color: #FFFFFF;
  margin: 0 0 4px;
}

.wk-support-text {
  font-size: 0.78125rem;
  line-height: 1.45;
  color: var(--on-dark-2, #A3ACCF);
  margin: 0 0 12px;
}

.wk-support-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  background: linear-gradient(100deg, var(--blue, #2F6BFF), #1742C0);
  color: #FFFFFF;
  font-family: var(--f-display, sans-serif);
  font-size: 0.8125rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(47, 107, 255, 0.35);
}

.wk-support-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(47, 107, 255, 0.55);
  background: linear-gradient(100deg, var(--blue-600, #1F55E6), #1338A8);
}

/* ---------------- Webkul-Style Tooltip Engine ---------------- */
.tooltip {
  position: relative;
  display: inline-flex;
}

.tooltip .tooltiptext {
  visibility: hidden;
  opacity: 0;
  background-color: #05060D;
  color: #FFFFFF;
  text-align: center;
  border-radius: 6px;
  padding: 5px 9px;
  font-family: var(--f-mono, monospace);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.02em;
  position: absolute;
  z-index: 1000;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1), transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.14);
  white-space: nowrap;
}

.tooltip .tooltiptext::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -4px;
  border-width: 4px;
  border-style: solid;
  border-color: #05060D transparent transparent transparent;
}

.tooltip:hover .tooltiptext {
  visibility: visible;
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Copy button dynamic tip state */
.wk-tip-done {
  display: none;
  color: #10B981;
}

.wk-bar-share-icon-copy-url.copied .wk-tip-idle {
  display: none;
}

.wk-bar-share-icon-copy-url.copied .wk-tip-done {
  display: inline;
}

/* ---------------- Related Articles Grid ---------------- */
.pyzen-related-section {
  margin-top: 52px;
  padding-top: 36px;
  border-top: 1px solid var(--line, rgba(10, 12, 24, 0.1));
}

.pyzen-related-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 24px;
}

.pyzen-related-kicker {
  font-family: var(--f-mono, monospace);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--blue, #2F6BFF);
  margin-bottom: 4px;
}

.pyzen-related-title {
  font-family: var(--f-display, sans-serif);
  font-size: clamp(1.4rem, 2vw, 1.85rem);
  font-weight: 800;
  color: var(--text, #0A0C18);
  margin: 0;
}

.pyzen-related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.pyzen-card-rel {
  background: #FFFFFF;
  border: 1px solid var(--line, rgba(10, 12, 24, 0.08));
  border-radius: var(--r-md, 16px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.25s ease;
  text-decoration: none;
  color: inherit;
}

.pyzen-card-rel:hover {
  transform: translateY(-4px);
  border-color: rgba(47, 107, 255, 0.3);
  box-shadow: 0 14px 32px -8px rgba(10, 12, 24, 0.1);
}

.pyzen-card-rel-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--paper-2, #F3F4F7);
  overflow: hidden;
}

.pyzen-card-rel-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.pyzen-card-rel:hover .pyzen-card-rel-thumb img {
  transform: scale(1.04);
}

.pyzen-card-rel-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.pyzen-card-rel-tag {
  font-family: var(--f-mono, monospace);
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--blue, #2F6BFF);
  margin-bottom: 6px;
}

.pyzen-card-rel-heading {
  font-family: var(--f-display, sans-serif);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text, #0A0C18);
  margin: 0 0 8px;
}

.pyzen-card-rel-meta {
  margin-top: auto;
  font-family: var(--f-mono, monospace);
  font-size: 0.7rem;
  color: var(--text-3, #63677D);
}

/* ---------------- Mobile Floating Bottom Bar ---------------- */
.pyzen-mobile-nav-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(5, 6, 13, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 8px 14px;
  z-index: 9998;
  align-items: center;
  justify-content: space-around;
  gap: 8px;
}

.pyzen-mob-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #FFFFFF;
  border-radius: 999px;
  padding: 7px 13px;
  font-family: var(--f-label, sans-serif);
  font-size: 0.78125rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  text-decoration: none;
}

.pyzen-mob-btn.cta-pill {
  background: var(--blue, #2F6BFF);
  border-color: var(--blue, #2F6BFF);
}

/* Mobile Drawer */
.pyzen-drawer-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  z-index: 10000;
}

.pyzen-drawer-backdrop.is-open {
  display: block;
}

.pyzen-toc-drawer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  max-height: 80vh;
  background: #FFFFFF;
  border-radius: 20px 20px 0 0;
  padding: 22px;
  z-index: 10001;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
}

.pyzen-drawer-backdrop.is-open .pyzen-toc-drawer {
  transform: translateY(0);
}

.pyzen-drawer-close {
  position: absolute;
  top: 16px;
  right: 18px;
  background: var(--paper-2, #F3F4F7);
  border: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* Toast */
.pyzen-toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(50px);
  background: #05060D;
  color: #FFFFFF;
  border: 1px solid rgba(94, 242, 225, 0.4);
  padding: 9px 18px;
  border-radius: 999px;
  font-family: var(--f-label, sans-serif);
  font-size: 0.8125rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 10002;
}

.pyzen-toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ---------------- Responsive Breakpoints ---------------- */
@media (max-width: 1200px) {
  .pyzen-article-grid {
    grid-template-columns: 220px minmax(0, 1fr);
  }
  .wk-blog-aside {
    display: none;
  }
}

@media (max-width: 991px) {
  .pyzen-article-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }
  .pyzen-rail-left {
    display: none;
  }
  .pyzen-mobile-nav-bar {
    display: flex;
  }
  .pyzen-related-grid {
    grid-template-columns: 1fr;
  }
}
