/* ==========================================================================
   KKSuite Blog & Guides Stylesheet
   Smallpdf Exact Design System - Full Width Fluid Edition
   Sticky Table of Contents, Embedded Tool Dropzone, Quick Takeaways, and Share Row.
   ========================================================================== */

/* Fluid Main Container */
/* Fluid Main Container - Flat Single Surface Edition */
.blog-fluid-wrap {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 48px 32px 96px;
}

/* --------------------------------------------------------------------------
   Blog Index / Home Layout (Exact Smallpdf Flat Surface Design)
   -------------------------------------------------------------------------- */
.blog-home-hero {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 48px;
}

.blog-home-hero h1 {
  font-size: clamp(2.2rem, 3.8vw, 3.25rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.035em;
  color: var(--sp-text-main);
  margin-bottom: 12px;
}

.blog-home-hero p {
  font-size: 1.15rem;
  line-height: 1.55;
  color: var(--sp-text-muted);
}

/* Featured Showcase (Smallpdf 2-column layout: 1 big on left, 2 stacked on right) */
.blog-showcase-grid {
  display: grid;
  grid-template-columns: 1.28fr 1fr;
  gap: 48px;
  margin-bottom: 72px;
}

/* Flat Item Links - Zero Boxes, Zero Borders, Zero Canvas */
.showcase-primary-item,
.showcase-secondary-item,
.blog-grid-item {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  border-radius: 0 !important;
}

/* Exact Homepage Brand Graphic Colors */
.bg-graphic-blue {
  background-color: #dfedff;
  color: #075aba;
}

.bg-graphic-purple {
  background-color: #eae5ff;
  color: #593bcc;
}

.bg-graphic-yellow {
  background-color: #fff0be;
  color: #765400;
}

/* Graphic Rounded Boxes (Exact Homepage Thumbnail Sizing: 160px height, 88px SVG, 12px radius) */
.blog-graphic-box {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  display: grid;
  place-items: center;
  position: relative;
  transition: transform 0.25s ease;
}

.graphic-large {
  height: 280px;
  margin-bottom: 20px;
}

.graphic-large svg {
  width: 130px;
  height: 130px;
  transition: transform 0.3s ease;
}

.graphic-medium {
  height: 160px;
  margin-bottom: 16px;
  border-radius: 12px;
}

.graphic-medium svg {
  width: 88px;
  height: 88px;
  transition: transform 0.3s ease;
}

.graphic-grid {
  height: 160px;
  margin-bottom: 20px;
  border-radius: 12px;
}

.graphic-grid svg {
  width: 88px;
  height: 88px;
  transition: transform 0.3s ease;
}

.showcase-primary-item:hover .blog-graphic-box svg,
.showcase-secondary-item:hover .blog-graphic-box svg,
.blog-grid-item:hover .blog-graphic-box svg {
  transform: scale(1.05);
}

.article-author-link {
  color: var(--sp-text-main);
  text-decoration: underline;
  text-decoration-color: var(--sp-border);
  text-underline-offset: 3px;
  font-weight: 700;
  transition: color 0.15s ease, text-decoration-color 0.15s ease;
}

.article-author-link:hover {
  color: var(--sp-primary);
  text-decoration-color: var(--sp-primary);
}

/* Author Profile Box (Real creator profile linking to /blog/author/ksnxrl) */
.article-author-card {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 24px 28px;
  margin-top: 48px;
  background: #f9fafb;
  border: 1px solid var(--sp-border);
  border-radius: 12px;
}

.author-avatar-img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid #ffffff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.author-info {
  display: flex;
  flex-direction: column;
}

.author-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--sp-text-subtle);
  margin-bottom: 2px;
}

.author-name {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--sp-text-main);
  text-decoration: none;
  width: fit-content;
  transition: color 0.15s ease;
}

.author-name:hover {
  color: var(--sp-primary);
  text-decoration: underline;
}

.author-role {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--sp-text-muted);
  margin-top: 2px;
}

.author-bio {
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--sp-text-muted);
  margin: 6px 0 0 0;
}

.author-card-links {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.author-card-more {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--sp-primary);
  text-decoration: none;
}

.author-card-more:hover {
  text-decoration: underline;
}

.author-card-ext {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--sp-text-muted);
  text-decoration: none;
}

.author-card-ext:hover {
  color: var(--sp-text-main);
  text-decoration: underline;
}

/* --------------------------------------------------------------------------
   Author Profile Page (/blog/author/ksnxrl)
   -------------------------------------------------------------------------- */
.author-page-wrap {
  width: 100%;
  max-width: 1392px;
  margin: 0 auto;
  padding: 24px 36px 88px;
}

.author-profile-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  padding: 40px 0 52px;
  border-bottom: 1px solid var(--sp-border);
  margin-bottom: 48px;
}

.author-hero-content {
  flex: 1;
  max-width: 760px;
}

.author-hero-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #075aba;
  background: #dfedff;
  padding: 4px 10px;
  border-radius: 6px;
  margin-bottom: 12px;
}

.author-hero-name {
  font-size: clamp(2.2rem, 3.8vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.1;
  color: var(--sp-text-main);
  margin: 0 0 6px 0;
}

.author-hero-role {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--sp-text-muted);
  margin-bottom: 16px;
}

.author-hero-bio {
  font-size: 1.0625rem;
  line-height: 1.65;
  color: #4b5563;
  margin: 0 0 24px 0;
}

.author-hero-links {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.author-social-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 999px;
  background: #f3f4f6;
  border: 1px solid var(--sp-border);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--sp-text-main);
  text-decoration: none;
  transition: all 0.15s ease;
}

.author-social-pill:hover {
  background: #e5e7eb;
  color: var(--sp-primary);
  border-color: #cbd5e1;
}

.pill-ext-arrow {
  font-size: 0.85rem;
  opacity: 0.7;
}

.author-hero-avatar-col {
  flex-shrink: 0;
}

.author-profile-large-avatar {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #ffffff;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 4px 10px -4px rgba(0, 0, 0, 0.06);
}

.author-articles-wrap {
  margin-top: 16px;
}

.author-articles-title {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--sp-text-main);
  margin: 0 0 6px 0;
}

.author-articles-sub {
  font-size: 1rem;
  color: var(--sp-text-muted);
  margin: 0 0 32px 0;
}

@media (max-width: 768px) {
  .author-profile-hero {
    flex-direction: column-reverse;
    align-items: flex-start;
    gap: 24px;
    padding: 24px 0 32px;
  }
  .author-profile-large-avatar {
    width: 110px;
    height: 110px;
  }
}

/* Secondary Stack on the right (2 stacked items like Smallpdf) */
.showcase-secondary-stack {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

/* Article Body Typography (Directly on flat surface) */
.blog-item-body {
  display: flex;
  flex-direction: column;
}

.blog-item-meta {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--sp-text-subtle);
  margin-bottom: 8px;
}

.showcase-primary-title {
  font-size: clamp(1.45rem, 2.2vw, 1.85rem);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.025em;
  color: var(--sp-text-main);
  margin: 0 0 12px 0;
  transition: color 0.15s ease;
}

.showcase-primary-item:hover .showcase-primary-title {
  color: var(--sp-primary);
}

.showcase-primary-desc {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--sp-text-muted);
  margin: 0 0 16px 0;
}

.showcase-secondary-title {
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.02em;
  color: var(--sp-text-main);
  margin: 0 0 8px 0;
  transition: color 0.15s ease;
}

.showcase-secondary-item:hover .showcase-secondary-title {
  color: var(--sp-primary);
}

.showcase-secondary-desc {
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--sp-text-muted);
  margin: 0 0 12px 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* All Articles Section (3-Column Flat Grid) */
.blog-section-header {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--sp-text-main);
  margin-bottom: 32px;
}

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

.blog-grid-title {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.015em;
  color: var(--sp-text-main);
  margin: 0 0 8px 0;
  transition: color 0.15s ease;
}

.blog-grid-item:hover .blog-grid-title {
  color: var(--sp-primary);
}

.blog-grid-desc {
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--sp-text-muted);
  margin: 0 0 14px 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Clean Smallpdf "Read article" Text Link */
.blog-read-link {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #0055ff;
  display: inline-block;
  margin-top: auto;
  text-decoration: none;
  transition: color 0.15s ease, text-decoration 0.15s ease;
}

.blog-read-link:hover {
  text-decoration: underline;
}

/* --------------------------------------------------------------------------
   Article Page: Smallpdf 2-Column Layout (Article + Sticky TOC)
   -------------------------------------------------------------------------- */
.article-container {
  width: 100%;
  max-width: 1392px;
  margin: 0 auto;
  padding: 24px 36px 88px;
}

.article-breadcrumbs-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: var(--sp-text-subtle);
  margin-bottom: 28px;
}

.article-breadcrumbs-nav a {
  color: var(--sp-text-muted);
  text-decoration: none;
  transition: color 0.15s ease;
}

.article-breadcrumbs-nav a:hover {
  color: var(--sp-primary);
}

.article-layout-2col {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 56px;
  align-items: start;
}

/* Left Column: Article Main */
.article-main-col {
  min-width: 0;
}

.article-main-col h1 {
  font-size: clamp(2.25rem, 3.8vw, 3.35rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.035em;
  color: var(--sp-text-main);
  margin: 14px 0 16px;
}

.article-lead {
  font-size: 1.2rem;
  line-height: 1.6;
  color: var(--sp-text-muted);
  margin-bottom: 22px;
}

.article-meta-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 0.9375rem;
  color: var(--sp-text-muted);
  margin-bottom: 24px;
}

.article-meta-bar strong {
  color: var(--sp-text-main);
}

/* Smallpdf Social Share Icons Row */
.article-share-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 0;
  border-top: 1px solid var(--sp-border);
  border-bottom: 1px solid var(--sp-border);
  margin-bottom: 36px;
}

.share-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--sp-border);
  background: var(--sp-bg);
  color: var(--sp-text-muted);
  display: grid;
  place-items: center;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
}

.share-btn svg {
  width: 18px;
  height: 18px;
}

.share-btn:hover {
  background: var(--sp-card-bg-hover);
  color: var(--sp-primary);
  border-color: var(--sp-border-hover);
  transform: translateY(-2px);
}

/* Smallpdf Quick Takeaways Box */
.quick-takeaways-card {
  background: #f0f7ff;
  border: 1px solid #cce1ff;
  border-left: 5px solid #0055ff;
  border-radius: 12px;
  padding: 24px 28px;
  margin: 32px 0 40px;
}

.quick-takeaways-card h2 {
  font-size: 1.25rem;
  font-weight: 800;
  color: #0f3d99;
  margin: 0 0 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.quick-takeaways-card ul {
  margin: 0;
  padding-left: 20px;
}

.quick-takeaways-card li {
  font-size: 1.0625rem;
  line-height: 1.65;
  color: #1a2a44;
  margin-bottom: 10px;
}

.quick-takeaways-card li:last-child {
  margin-bottom: 0;
}

/* Featured Snippet Box */
.featured-snippet-box {
  background: #fafbff;
  border: 1.5px solid #0055ff;
  border-radius: 12px;
  padding: 24px;
  margin: 32px 0;
}

.snippet-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #0055ff;
  background: #ffffff;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(0, 85, 255, 0.2);
  margin-bottom: 12px;
}

.snippet-headline {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--sp-text-main);
  margin-bottom: 10px;
}

.snippet-answer {
  font-size: 1.0625rem;
  line-height: 1.65;
  color: #1a2a44;
  margin: 0;
}

/* Embedded Real KKSuite Tool Dropzone in Articles (Identical to Tool Hero) */
.article-main-col .sp-tool-dropzone-hero {
  margin: 40px 0 32px;
  text-decoration: none;
  color: #ffffff;
}

.article-main-col .sp-tool-dropzone-hero:hover {
  text-decoration: none;
}

.article-main-col .sp-hero-drop-text {
  color: rgba(255, 255, 255, 0.92);
}

/* Article Typography */
.article-rich-text {
  font-size: 1.125rem;
  line-height: 1.75;
  color: var(--sp-text-main);
}

.article-rich-text h2 {
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  margin: 48px 0 16px;
  color: var(--sp-text-main);
  scroll-margin-top: 100px;
}

.article-rich-text h3 {
  font-size: 1.35rem;
  font-weight: 700;
  margin: 32px 0 14px;
  color: var(--sp-text-main);
  scroll-margin-top: 100px;
}

.article-rich-text p {
  margin-bottom: 20px;
}

.article-rich-text ul,
.article-rich-text ol {
  margin: 0 0 24px 24px;
}

.article-rich-text li {
  margin-bottom: 10px;
  line-height: 1.65;
}

.blog-steps-list {
  list-style: none;
  margin: 28px 0;
  padding: 0;
  counter-reset: step-counter;
}

.blog-steps-list li {
  position: relative;
  padding-left: 48px;
  margin-bottom: 22px;
  line-height: 1.65;
}

.blog-steps-list li::before {
  content: counter(step-counter);
  counter-increment: step-counter;
  position: absolute;
  left: 0;
  top: 2px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--sp-primary);
  color: #ffffff;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.9375rem;
}

/* Comparison Tables */
.blog-table-container {
  overflow-x: auto;
  margin: 36px 0;
  border: 1px solid var(--sp-border);
  border-radius: 14px;
  background: var(--sp-bg);
}

.blog-comparison-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9375rem;
}

.blog-comparison-table caption {
  padding: 14px 20px;
  font-weight: 700;
  font-size: 1rem;
  color: var(--sp-text-main);
  background: var(--sp-card-bg);
  border-bottom: 1px solid var(--sp-border);
  text-align: left;
}

.blog-comparison-table th {
  background: var(--sp-card-bg);
  padding: 14px 20px;
  font-weight: 700;
  color: var(--sp-text-main);
  border-bottom: 2px solid var(--sp-border);
}

.blog-comparison-table td {
  padding: 14px 20px;
  border-bottom: 1px solid var(--sp-border);
  color: var(--sp-text-muted);
}

.blog-comparison-table tr:last-child td {
  border-bottom: none;
}

/* FAQ Box */
.blog-faqs-wrap {
  margin-top: 48px;
  padding-top: 36px;
  border-top: 1px solid var(--sp-border);
}

.blog-faq-block {
  margin-bottom: 20px;
  background: var(--sp-card-bg);
  border: 1px solid var(--sp-border);
  border-radius: 12px;
  padding: 20px 24px;
}

.blog-faq-q {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--sp-text-main);
  margin-bottom: 8px;
}

.blog-faq-a {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--sp-text-muted);
  margin: 0;
}

/* Right Column: Clean Smallpdf Borderless Table of Contents (No Card / No Canvas) */
.article-toc-sidebar {
  position: sticky;
  top: 96px;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
}

.toc-wrap {
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

.toc-title {
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--sp-text-main);
  margin: 0 0 18px;
}

.toc-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.toc-list a {
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--sp-text-muted);
  text-decoration: none;
  display: block;
  transition: color 0.15s ease;
}

.toc-list a:hover {
  color: var(--sp-primary);
}

/* --------------------------------------------------------------------------
   Responsive Breakpoints
   -------------------------------------------------------------------------- */
@media (max-width: 1100px) {
  .blog-showcase-grid {
    grid-template-columns: 1fr;
  }
  .article-layout-2col {
    grid-template-columns: 1fr;
  }
  .article-toc-sidebar {
    position: static;
    margin-bottom: 32px;
  }
}

@media (max-width: 800px) {
  .blog-fluid-wrap,
  .article-container {
    padding-inline: 20px;
  }
  .showcase-secondary-card {
    flex-direction: column;
  }
  .showcase-secondary-graphic {
    width: 100%;
    height: 150px;
  }
  .blog-grid-3 {
    grid-template-columns: 1fr;
  }
}

/* Format examples keep their natural aspect ratio and make alpha visible. */
.format-example-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px; margin:24px 0; }
.format-example-grid figure { margin:0; min-width:0; }
.format-example-grid img { display:block; width:100%; height:auto; }
.format-example-grid figcaption { font-size:1rem; line-height:1.6; margin-top:10px; }
.transparency-board { background-color:#fff; background-image:conic-gradient(#e1e6ed 25%,#fff 0 50%,#e1e6ed 0 75%,#fff 0); background-size:24px 24px; border:1px solid #d4dae3; }
.article-tool-link { padding:24px; margin:32px 0; background:#edf4ff; border-left:4px solid #0055ff; }
.article-tool-link .sp-btn-primary,.article-tool-link .sp-btn-secondary { margin:8px 12px 0 0; white-space:normal; }
.article-references { margin:32px 0; }
@media(max-width:640px) { .format-example-grid { grid-template-columns:1fr; } }

/* Match the quiet shared navigation, keeping the editorial layouts. */
.blog-home-hero h1{font-weight:650;letter-spacing:-.035em}
.blog-home-hero .blog-eyebrow{font-size:12px;font-weight:600;letter-spacing:.12em;color:#666;margin-bottom:16px}
.blog-index-nav{display:flex;justify-content:center;margin:-12px 0 40px}
.blog-index-nav a{font-size:14px;font-weight:500;padding:10px 0;border-bottom:1px solid #d5d5d5}
.blog-index-nav a:hover{border-color:currentColor}
#all-guides{scroll-margin-top:84px}
.blog-guide-count{font-size:14px;font-weight:400;color:#666;margin-left:10px}
.blog-grid-title,.showcase-secondary-title{font-weight:600}
.blog-grid-item{border-radius:6px}
.blog-grid-item:focus-visible,.showcase-primary-item:focus-visible,.showcase-secondary-item:focus-visible{outline:2px solid #0055cc;outline-offset:5px}
