.sidebar-widget--toc.toc-pinned {
  position: sticky;
  top: calc(var(--header-height, 72px) + 1.5rem);
  z-index: 10;
}
.toc-pin-btn {
  width: 2rem;
  height: 2rem;
  border-radius: 0.55rem;
  border: 1px solid rgba(14, 165, 255, 0.25);
  background: rgba(255, 255, 255, 0.86);
  color: #0f5fb3;
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s, border-color 0.2s;
  margin-right: 0.2em;
}
.toc-pin-btn[aria-pressed="true"] {
  background: #e6f6fd;
  color: var(--neon-blue, #00d9ff);
  border-color: var(--neon-blue, #00d9ff);
}
/* =============================================================================
   blog.css — Blog post page styles for theultimateresources.com
   Extends style.css; must be loaded AFTER style.css on every blog page.
   ============================================================================= */

/* ---------------------------------------------------------------------------
   Breadcrumb
   --------------------------------------------------------------------------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3rem;
  list-style: none;
  padding: 0;
  margin: 0 0 2.5rem;
  font-size: 0.82rem;
  color: var(--text-muted, #7b8cb8);
}

.breadcrumb li + li::before {
  content: "/";
  margin-right: 0.3rem;
  color: var(--neon-blue, #00d9ff);
  opacity: 0.5;
}

.breadcrumb a {
  color: var(--neon-blue, #00d9ff);
  text-decoration: none;
  transition: opacity 0.2s;
}

.breadcrumb a:hover { opacity: 0.7; }

/* ---------------------------------------------------------------------------
   Page layout — two-column (article + sidebar) with graceful collapse
   --------------------------------------------------------------------------- */
.blog-page {
  /* padding-top: calc(var(--header-height, 72px) + 2rem); */
  padding-bottom: 5rem;
}

.blog-page.container {
  width: min(100% - 2rem, 1420px);
  margin-left: auto;
  margin-right: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.blog-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 2.5rem;
  align-items: start;
}

@media (max-width: 1024px) {
  .blog-layout {
    grid-template-columns: 1fr 280px;
    gap: 2rem;
  }
}

@media (max-width: 840px) {
  .blog-layout {
    grid-template-columns: 1fr;
  }
  .blog-sidebar {
    position: static;
    order: 2;
  }
  .article { order: 1; }
  .article__step {
    padding: 1.5rem 1.25rem 1.5rem 3.75rem;
  }
}

@media (max-width: 480px) {
  .article__title {
    font-size: 1.4rem;
  }
  .article__step {
    padding: 1.25rem 1rem 1.25rem 3.25rem;
  }
  .step__number {
    top: 1.25rem;
    left: 0.9rem;
    width: 1.85rem;
    height: 1.85rem;
    font-size: 0.72rem;
  }
  .code-block pre {
    font-size: 0.78rem;
    padding: 1rem;
  }
  .callout__grid {
    grid-template-columns: 1fr;
  }
  .article__conclusion {
    padding: 1.5rem 1rem;
  }
}


/* ---------------------------------------------------------------------------
   Article
   --------------------------------------------------------------------------- */
.article {
  min-width: 0;               /* prevent grid blowout */
}

/* Header */
.article__header {
  margin-bottom: 2.5rem;
}

.article__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.article__tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 2rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: 1px solid var(--neon-blue, #00d9ff);
  color: var(--neon-blue, #00d9ff);
  background: rgba(0, 217, 255, 0.06);
}

.article__tag--purple {
  border-color: var(--neon-purple, #8c5bff);
  color: var(--neon-purple, #8c5bff);
  background: rgba(140, 91, 255, 0.06);
}

.article__tag--green {
  border-color: var(--neon-green, #19f0b5);
  color: var(--neon-green, #19f0b5);
  background: rgba(25, 240, 181, 0.06);
}

.article__title {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 1.25rem;
  background: linear-gradient(135deg, #fff 30%, var(--neon-blue, #00d9ff));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Meta bar — date + author + reading time */
.article__meta-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.article__meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.48rem;
  padding: 0.44rem 0.82rem;
  border-radius: 999px;
  border: 1px solid rgba(14, 165, 255, 0.22);
  background: linear-gradient(120deg, rgba(14, 165, 255, 0.14), rgba(255, 107, 107, 0.1));
  color: #13457b;
  font-size: 0.8rem;
  font-weight: 600;
}

.article__meta-pill i {
  font-size: 0.95rem;
}

.article__meta-pill strong {
  font-weight: 700;
}

.article__meta-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
  padding: 0.75rem 1.25rem;
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 0.82rem;
  color: var(--text-muted, #7b8cb8);
  margin-bottom: 2rem;
}

.article__meta-bar .meta-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.article__meta-bar .meta-item i {
  font-size: 1rem;
  color: var(--neon-blue, #00d9ff);
}

.article__author {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: #d0d9f2;
}

.article__author-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--neon-blue, #00d9ff);
  background: linear-gradient(135deg, var(--neon-purple, #8c5bff), var(--neon-blue, #00d9ff));
  display: grid;
  place-items: center;
  font-size: 0.9rem;
  color: #fff;
}

/* Intro paragraph */
.article__intro {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #c5ceea;
  margin-bottom: 2.5rem;
  padding: 1.25rem 1.5rem;
  border-left: 3px solid var(--neon-blue, #00d9ff);
  background: rgba(0, 217, 255, 0.04);
  border-radius: 0 0.5rem 0.5rem 0;
}

/* Article body text */
.article p {
  font-size: 0.98rem;
  line-height: 1.8;
  color: inherit;
  margin-bottom: 1.2rem;
}

.article h2 {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.35rem;
  color: inherit;
  margin: 2.5rem 0 1rem;
}

.article h3 {
  font-size: 1.1rem;
  color: inherit;
  margin: 1.8rem 0 0.75rem;
}

.article ul,
.article ol {
  padding-left: 1.5rem;
  margin-bottom: 1.2rem;
}

.article li {
  font-size: 0.95rem;
  line-height: 1.75;
  color: inherit;
  margin-bottom: 0.35rem;
}

.article strong {
   color: #1b50d0; }
/* .article strong { color: #e0e9ff; } */

.article a {
  color: var(--neon-blue, #00d9ff);
  text-decoration: underline;
  text-decoration-color: transparent;
  transition: text-decoration-color 0.2s;
}

.article a:hover { text-decoration-color: var(--neon-blue, #00d9ff); }

/* ---------------------------------------------------------------------------
   Step cards
   --------------------------------------------------------------------------- */
.article__step {
  position: relative;
  padding: 2rem 2rem 2rem 4.5rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 2rem;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.article__step:hover {
  border-color: rgba(0, 217, 255, 0.3);
  box-shadow: 0 0 24px rgba(0, 217, 255, 0.06);
}

.step__number {
  position: absolute;
  top: 1.75rem;
  left: 1.25rem;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--neon-blue, #00d9ff), var(--neon-purple, #8c5bff));
  display: grid;
  place-items: center;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  color: #050816;
  flex-shrink: 0;
}

.step__title {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: #e8eeff;
  margin: 0 0 1rem;
}

.step__content { margin: 0; }

/* ---------------------------------------------------------------------------
   Code blocks
   --------------------------------------------------------------------------- */
.code-block {
  border-radius: 0.75rem;
  background: #0b0f1e;
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  margin: 1.25rem 0 1.5rem;
}

.code-block__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 1rem;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.code-block__lang {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--neon-blue, #00d9ff);
}

.code-block__copy {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.75rem;
  border-radius: 0.4rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: transparent;
  color: #8a9ad0;
  font-size: 0.75rem;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.code-block__copy:hover {
  border-color: var(--neon-blue, #00d9ff);
  color: var(--neon-blue, #00d9ff);
  background: rgba(0, 217, 255, 0.06);
}

.code-block__copy.copied {
  border-color: var(--neon-green, #19f0b5);
  color: var(--neon-green, #19f0b5);
}

.code-block pre {
  margin: 0;
  padding: 1.25rem 1.5rem;
  overflow-x: auto;
  font-family: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
  font-size: 0.85rem;
  line-height: 1.7;
  color: #c9d1f0;
  tab-size: 2;
}

.code-block pre code { font-family: inherit; }

/* Inline code in body text */
.article code:not(pre code) {
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 0.85em;
  padding: 0.15em 0.45em;
  border-radius: 0.3em;
  background: rgba(0, 217, 255, 0.08);
  border: 1px solid rgba(0, 217, 255, 0.15);
  color: var(--neon-blue, #00d9ff);
  white-space: nowrap;
}

/* ---------------------------------------------------------------------------
   Callout / note boxes
   --------------------------------------------------------------------------- */
.article__note {
  display: flex;
  gap: 0.9rem;
  padding: 1rem 1.25rem;
  border-radius: 0.75rem;
  border-left: 3px solid var(--neon-blue, #00d9ff);
  background: rgba(0, 217, 255, 0.06);
  margin: 1.25rem 0;
  font-size: 0.9rem;
  line-height: 1.7;
  color: #c5ceea;
}

.article__note i {
  flex-shrink: 0;
  font-size: 1.15rem;
  margin-top: 0.1rem;
  color: var(--neon-blue, #00d9ff);
}

.article__note--warning {
  border-color: #f5a623;
  background: rgba(245, 166, 35, 0.06);
}

.article__note--warning i { color: #f5a623; }

.article__note--danger {
  border-color: #ff4560;
  background: rgba(255, 69, 96, 0.06);
}

.article__note--danger i { color: #ff4560; }

/* Success callout */
.article__success {
  display: flex;
  gap: 0.9rem;
  padding: 1rem 1.25rem;
  border-radius: 0.75rem;
  border-left: 3px solid var(--neon-green, #19f0b5);
  background: rgba(25, 240, 181, 0.06);
  margin: 1.25rem 0;
  font-size: 0.9rem;
  line-height: 1.7;
  color: #c5ceea;
}

.article__success i {
  flex-shrink: 0;
  font-size: 1.15rem;
  margin-top: 0.1rem;
  color: var(--neon-green, #19f0b5);
}

/* Callout box (coloured grid) */
.article__callout {
  padding: 1.5rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin: 1.75rem 0;
}

.callout__title {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  color: #e8eeff;
  margin: 0 0 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.callout__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.75rem;
}

.callout__item {
  padding: 0.75rem 1rem;
  border-radius: 0.6rem;
  font-size: 0.85rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.callout__item i { font-size: 1rem; flex-shrink: 0; }

.callout__item--blue {
  background: rgba(0, 217, 255, 0.08);
  border: 1px solid rgba(0, 217, 255, 0.2);
  color: var(--neon-blue, #00d9ff);
}

.callout__item--purple {
  background: rgba(140, 91, 255, 0.08);
  border: 1px solid rgba(140, 91, 255, 0.2);
  color: var(--neon-purple, #8c5bff);
}

.callout__item--green {
  background: rgba(25, 240, 181, 0.08);
  border: 1px solid rgba(25, 240, 181, 0.2);
  color: var(--neon-green, #19f0b5);
}

/* ---------------------------------------------------------------------------
   File list (cert files)
   --------------------------------------------------------------------------- */
.file-list {
  list-style: none;
  padding: 0;
  margin: 0.75rem 0 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.file-list__item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.65rem 1rem;
  border-radius: 0.5rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.83rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  color: #c9d1f0;
}

.file-list__item i { font-size: 1rem; flex-shrink: 0; }

.file-list__item--key i  { color: #f5a623; }
.file-list__item--cert i { color: var(--neon-green, #19f0b5); }

/* ---------------------------------------------------------------------------
   Conclusion section
   --------------------------------------------------------------------------- */
.article__conclusion {
  margin-top: 3rem;
  padding: 2rem;
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
}

.conclusion__title {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  margin: 0 0 0.75rem;
  background: linear-gradient(135deg, #fff, var(--neon-green, #19f0b5));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.conclusion__share {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.25rem;
  border-radius: 2rem;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.2s, transform 0.2s;
  border: none;
}

.share-btn:hover { opacity: 0.85; transform: translateY(-2px); }

.share-btn--twitter  { background: #1da1f2; color: #fff; }
.share-btn--linkedin { background: #0077b5; color: #fff; }

/* --- Conclusion Block Enhancements (SharePoint Migration) --- */
.conclusion__highlight {
  background: linear-gradient(90deg, #e0f7fa 0%, #e1bee7 100%);
  color: #13457b;
  border-radius: 0.8rem;
  padding: 1rem 1.2rem;
  margin: 1.2rem 0;
  font-size: 1.08rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 600;
}
.conclusion__next-steps {
  text-align: left;
  margin: 1.2rem auto 0 auto;
  max-width: 540px;
  padding-left: 1.2rem;
}
.conclusion__next-steps li {
  margin-bottom: 0.5rem;
  line-height: 1.7;
}
.conclusion__related {
  margin-top: 2rem;
  text-align: left;
}
.conclusion__related h3 {
  font-size: 1.08rem;
  margin-bottom: 0.5rem;
  color: var(--neon-blue, #00d9ff);
}
.conclusion__related ul {
  padding-left: 1.2rem;
  margin: 0;
}
.conclusion__related li {
  margin-bottom: 0.3rem;
}

/* ---------------------------------------------------------------------------
   Sidebar
   --------------------------------------------------------------------------- */
.blog-sidebar {
  /* position: sticky; */
  /* top: calc(var(--header-height, 72px) + 1.5rem); */
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  min-width: 0;
}

.sidebar-widget {
  padding: 1.5rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-widget__title {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--neon-blue, #00d9ff);
  margin: 0 0 1.1rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid rgba(0, 217, 255, 0.15);
}

/* Table of contents */
.toc {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.toc a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.5rem;
  border-radius: 0.4rem;
  font-size: 0.83rem;
  color: inherit;
  text-decoration: none;
  transition: color 0.2s, background 0.2s;
}

.toc a i {
  font-size: 0.9rem;
  flex-shrink: 0;
  color: var(--neon-blue, #00d9ff);
  opacity: 0.5;
  transition: opacity 0.2s;
}

.toc a:hover,
.toc a.active {
  color: inherit;
  background: rgba(0, 217, 255, 0.06);
}

.toc a:hover i,
.toc a.active i {
  opacity: 1;
}

/* Tag cloud */
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

/* Make tag cloud in sidebar scrollable when long */
.sidebar-widget .tag-cloud {
  max-height: 180px;
  overflow-y: auto;
  padding-right: 0.25rem;
}

/* Simple scrollbar styling */
.sidebar-widget .tag-cloud::-webkit-scrollbar {
  width: 10px;
}
.sidebar-widget .tag-cloud::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.06);
  border-radius: 6px;
}
.sidebar-widget .tag-cloud::-webkit-scrollbar-track {
  background: transparent;
}

.tag {
  display: inline-block;
  padding: 0.25rem 0.6rem;
  border-radius: 0.3rem;
  font-size: 0.75rem;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: inherit;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
}

.tag:hover {
  border-color: var(--neon-purple, #8c5bff);
  color: var(--neon-purple, #8c5bff);
}

/* Tools widget */
.sidebar-widget--tools .sidebar-widget__title {
  color: var(--neon-green, #19f0b5);
  border-color: rgba(25, 240, 181, 0.15);
}

.tool-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.tool-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.75rem;
  border-radius: 0.55rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s;
}

.tool-item:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.14);
}

.tool-item__icon {
  width: 32px;
  height: 32px;
  border-radius: 0.4rem;
  display: grid;
  place-items: center;
  font-size: 1rem;
  flex-shrink: 0;
}

/* Icon image inside tool list (SecureDiff logo) */
.tool-item__icon img {
  width: 62%;
  height: 62%;
  object-fit: contain;
  display: block;
}

.tool-item__icon--purple {
  background: rgba(140, 91, 255, 0.12);
  border: 1px solid rgba(140, 91, 255, 0.2);
  color: var(--neon-purple, #8c5bff);
}

.tool-item__icon--green {
  background: rgba(25, 240, 181, 0.12);
  border: 1px solid rgba(25, 240, 181, 0.2);
  color: var(--neon-green, #19f0b5);
}

.tool-item__icon--blue {
  background: rgba(0, 217, 255, 0.12);
  border: 1px solid rgba(0, 217, 255, 0.2);
  color: var(--neon-blue, #00d9ff);
}

.tool-item__name {
  font-size: 0.83rem;
  font-weight: 600;
  color: #c9d1f0;
}

.tool-item__desc {
  font-size: 0.73rem;
  color: #6a7a9e;
  margin-top: 0.1rem;
}

[data-component="breadcrumb"]{
  width: 100%;
}


/* ─── AdSense inside sidebar ────────────────────────────────────────────── */
.sidebar-widget .ad-slot {
  min-height: 100px;
  margin-top: 0.5rem;
}

/* ---------------------------------------------------------------------------
   Responsive breakpoints
   --------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .blog-layout {
    grid-template-columns: 1fr 280px;
    gap: 2rem;
  }
}

@media (max-width: 840px) {
  .blog-layout {
    grid-template-columns: 1fr;
  }

  .blog-sidebar {
    position: static;
    /* Show sidebar below article on mobile */
    order: 2;
  }

  .article { order: 1; }

  .article__step {
    padding: 1.5rem 1.25rem 1.5rem 3.75rem;
  }
}

@media (max-width: 480px) {
  .article__title {
    font-size: 1.4rem;
  }

  .article__step {
    padding: 1.25rem 1rem 1.25rem 3.25rem;
  }

  .step__number {
    top: 1.25rem;
    left: 0.9rem;
    width: 1.85rem;
    height: 1.85rem;
    font-size: 0.72rem;
  }

  .code-block pre {
    font-size: 0.78rem;
    padding: 1rem;
  }

  .callout__grid {
    grid-template-columns: 1fr;
  }

  .article__conclusion {
    padding: 1.5rem 1rem;
  }
}

/* ---------------------------------------------------------------------------
   Theme Refresh: brighter article surfaces and typography
   --------------------------------------------------------------------------- */
.article__title {
  background: linear-gradient(135deg, #112647 35%, #0d8dff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.article__meta-bar,
.article__step,
.article__callout,
.article__conclusion,
.sidebar-widget,
.tool-item,
.file-list__item {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(31, 64, 126, 0.13);
  box-shadow: 0 14px 28px rgba(35, 72, 138, 0.1);
}

.article__intro {
  color: #425784;
  background: rgba(0, 149, 255, 0.08);
}

.article p,
.article li{
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.08);
  /* box-shadow: 0 8px 32px 0 rgba(31, 64, 126, 0.12), 0 1.5px 6px 0 rgba(0,0,0,0.04); */
}


.article strong {
  color: #142c50;
}

.code-block {
  background: #f4f8ff;
  border: 1px solid rgba(31, 64, 126, 0.14);
}

.code-block__header {
  background: rgba(0, 149, 255, 0.06);
  border-bottom: 1px solid rgba(31, 64, 126, 0.12);
}

.code-block pre {
  color: #27406b;
}

.code-block__copy {
  border-color: rgba(31, 64, 126, 0.15);
  color: #49608e;
}

.toc a,
.tag,
.tool-item__desc {
  color: #5e7198;
}

.toc a:hover,
.toc a.active {
  color: #17345f;
  background: rgba(0, 149, 255, 0.08);
}

.tag {
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(31, 64, 126, 0.11);
}

/* ---------------------------------------------------------------------------
   Visual Refinement v2: improved article readability and hierarchy
   --------------------------------------------------------------------------- */
.blog-layout {
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 2.25rem;
}

.article {
  font-family: "Plus Jakarta Sans", "Segoe UI", sans-serif;
}

.article__title,
.step__title,
.sidebar-widget__title,
.conclusion__title {
  font-family: "Sora", "Segoe UI", sans-serif;
  letter-spacing: -0.02em;
}

.article__header {
  padding: 2rem;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(243, 248, 255, 0.84));
  border: 1px solid rgba(31, 64, 126, 0.12);
  box-shadow: 0 16px 38px rgba(35, 72, 138, 0.12);
}

.article__intro {
  border-left-width: 4px;
}

.article__step {
  border-radius: 20px;
}

.article__step:hover {
  box-shadow: 0 18px 36px rgba(35, 72, 138, 0.14);
}

.step__number {
  box-shadow: 0 8px 20px rgba(58, 116, 236, 0.3);
}

.article p,
.article li {
  font-size: 1rem;
  line-height: 1.85;
}

.sidebar-widget,
.article__callout,
.article__conclusion {
  border-radius: 20px;
}

.toc a,
.tag,
.tool-item {
  border-radius: 12px;
}

.share-btn {
  border-radius: 999px;
  box-shadow: 0 10px 22px rgba(35, 72, 138, 0.16);
}

@media (max-width: 840px) {
  .article__header {
    padding: 1.35rem;
  }
}

/* ---------------------------------------------------------------------------
   Micro Polish v3: reading comfort and mobile touch detail
   --------------------------------------------------------------------------- */
/* .article__title {
  text-wrap: balance;
} */

.article__meta-bar {
  row-gap: 0.7rem;
  column-gap: 1.1rem;
}

.article p,
.article li {
  font-size: 1.01rem;
}

.code-block pre {
  font-size: 0.83rem;
  line-height: 1.75;
}

.toc a {
  min-height: 38px;
  padding: 0.46rem 0.58rem;
}

.tool-item {
  min-height: 44px;
}

.tool-item__icon {
  width: 30px;
  height: 30px;
  font-size: 0.95rem;
}

@media (max-width: 480px) {
  .article__title {
    font-size: 1.3rem;
    line-height: 1.28;
  }

  .article__intro {
    font-size: 0.98rem;
    line-height: 1.72;
    padding: 1rem 1.05rem;
  }

  .article p,
  .article li {
    font-size: 0.95rem;
    line-height: 1.78;
  }

  .sidebar-widget {
    padding: 1.1rem;
  }

  .sidebar-widget__title {
    font-size: 0.8rem;
  }

  .toc a {
    font-size: 0.8rem;
  }

  .code-block pre {
    font-size: 0.76rem;
    line-height: 1.68;
  }
}

/* ---------------------------------------------------------------------------
   Performance Polish v4: smoother blog rendering on small devices
   --------------------------------------------------------------------------- */
@media (max-width: 840px) {
  .article__header,
  .article__step,
  .article__callout,
  .article__conclusion,
  .sidebar-widget,
  .tool-item,
  .file-list__item {
    box-shadow: 0 8px 18px rgba(35, 72, 138, 0.12);
  }

  .article__step:hover {
    box-shadow: 0 8px 18px rgba(35, 72, 138, 0.12);
  }
}

@media (max-width: 480px) {
  .article__header,
  .article__step,
  .article__callout,
  .article__conclusion,
  .sidebar-widget {
    box-shadow: 0 6px 14px rgba(35, 72, 138, 0.1);
  }

  .code-block pre {
    padding: 0.92rem;
  }
}

@media (hover: none), (pointer: coarse) {
  .article__step:hover,
  .share-btn:hover,
  .tool-item:hover,
  .toc a:hover {
    transform: none;
  }
}

/* ---------------------------------------------------------------------------
   Visual Direction v6: vibrant article styling
   --------------------------------------------------------------------------- */
.article__title {
  background: linear-gradient(125deg, #0f5fb3 12%, #0ea5ff 50%, #ff6b6b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.article__header,
.article__step,
.article__callout,
.article__conclusion,
.sidebar-widget,
.tool-item,
.file-list__item {
  border: 1px solid rgba(14, 165, 255, 0.16);
  background: linear-gradient(170deg, rgba(255, 255, 255, 0.95), rgba(244, 250, 255, 0.9));
}

.step__number {
  background: linear-gradient(140deg, #0ea5ff, #ff6b6b);
  color: #ffffff;
}

.article__meta-bar .meta-item i,
.breadcrumb a,
.sidebar-widget__title,
.code-block__lang {
  color: #0f5fb3;
}

.article__intro {
  border-left-color: #0ea5ff;
  background: linear-gradient(120deg, rgba(14, 165, 255, 0.1), rgba(255, 107, 107, 0.08));
}

.article a {
  color: #0f5fb3;
}

.code-block {
  background: #f5f9ff;
  border: 1px solid rgba(14, 165, 255, 0.18);
}

.code-block__header {
  background: rgba(14, 165, 255, 0.09);
}

.toc a:hover,
.toc a.active {
  background: linear-gradient(120deg, rgba(14, 165, 255, 0.14), rgba(255, 107, 107, 0.1));
  color: #14345f;
}

.tag:hover {
  border-color: rgba(255, 107, 107, 0.35);
  color: #b44949;
}

/* ---------------------------------------------------------------------------
   Visual Shape v11: de-boxed organic blog surfaces
   --------------------------------------------------------------------------- */
.article__header,
.article__step,
.article__callout,
.article__conclusion,
.sidebar-widget,
.tool-item,
.file-list__item,
.code-block {
  border-radius: 28px 34px 24px 32px;
  position: relative;
  overflow: hidden;
}

.article__header::after,
.article__step::after,
.sidebar-widget::after {
  content: "";
  position: absolute;
  inset: auto -48px -58px auto;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(14, 165, 255, 0.18), transparent 72%);
  pointer-events: none;
}

.article__step:hover {
  transform: translateY(-4px) rotate(-0.25deg);
}

@media (max-width: 840px) {
  .article__header,
  .article__step,
  .article__callout,
  .article__conclusion,
  .sidebar-widget,
  .tool-item,
  .file-list__item,
  .code-block {
    border-radius: 20px;
  }

  .article__step:hover {
    transform: translateY(-2px);
  }
}

/* ---------------------------------------------------------------------------
   Typography Refresh v7
   --------------------------------------------------------------------------- */
.article {
  font-family: "Manrope", "Segoe UI", sans-serif;
  line-height: 1.86;
}

.article__title,
.step__title,
.sidebar-widget__title,
.conclusion__title {
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-weight: 700;
  letter-spacing: -0.022em;
}

.article__title {
  font-size: clamp(1.55rem, 3.2vw, 2.35rem);
  line-height: 1.2;
}

.article p,
.article li,
.article__intro,
.article__note,
.article__success {
  font-weight: 500;
  letter-spacing: 0.002em;
}

.sidebar-widget__title,
.code-block__lang {
  letter-spacing: 0.08em;
}

.toc a,
.tag,
.tool-item__name,
.tool-item__desc {
  font-family: "Manrope", "Segoe UI", sans-serif;
}

@media (max-width: 480px) {
  .article {
    font-size: 15px;
  }

  .article__title {
    font-size: 1.28rem;
    line-height: 1.24;
  }
}

/* ---------------------------------------------------------------------------
   Typography v8: startup modern balance (blog)
   --------------------------------------------------------------------------- */
.article {
  font-family: "Manrope", "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.9;
}

.article__title,
.step__title,
.sidebar-widget__title,
.conclusion__title {
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-weight: 700;
  letter-spacing: -0.024em;
}

.article__title {
  font-size: clamp(1.62rem, 3.15vw, 2.28rem);
  line-height: 1.18;
}

.article p,
.article li,
.article__intro,
.article__note,
.article__success {
  font-size: 1rem;
  line-height: 1.9;
  font-weight: 500;
}

/* Align everything nicely */
.author__link {
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: inherit;
}

/* Avatar styling */
.author__avatar {
  width: 24px;        /* small size */
  height: 24px;
  border-radius: 50%; /* makes it round */
  object-fit: cover;
  display: block;
}

/* Optional: better look */
.author__avatar {
  border: 1.5px solid #e0e7ef;
}

.toc-container {
  max-height: 420px;   /* control height */
  overflow-y: auto;    /* enables vertical scroll */
  overflow-x: hidden;  /* prevents horizontal scroll */
  padding-right: 6px;
}

.article__meta-bar,
.article__author,
.tag,
.toc a,
.tool-item__name,
.tool-item__desc {
  font-family: "Manrope", "Segoe UI", sans-serif;
}

.sidebar-widget__title,
.code-block__lang {
  letter-spacing: 0.065em;
}

@media (max-width: 480px) {
  .article {
    font-size: 15px;
  }

  .article__title {
    font-size: 1.26rem;
    line-height: 1.24;
  }

  .article p,
  .article li,
  .article__intro {
    line-height: 1.82;
  }
}

/* ---------------------------------------------------------------------------
   Typography v9: article line-length and heading rhythm
   --------------------------------------------------------------------------- */
.article {
  max-width: 74ch;
}

.article__title {
  /* max-width: 20ch; */
  margin-bottom: 1.1rem;
}

.article__intro {
  max-width: 64ch;
}

.article p,
.article li {
  max-width: 100%;
}

.article h2,
.step__title {
  line-height: 1.28;
}

.code-block pre {
  max-width: 100%;
  font-size: 0.84rem;
}

.sidebar-widget {
  max-width: 320px;
}

@media (max-width: 840px) {
  .article,
  .article__title,
  .article__intro,
  .article p,
  .article li,
  .sidebar-widget {
    max-width: none;
  }
}

/* ---------------------------------------------------------------------------
   Layout v12: larger main article + horizontal TOC collapse
   --------------------------------------------------------------------------- */
.blog-layout {
  grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
  gap: 1.15rem;
}

.article {
  width: 100%;
  max-width: none;
}

.blog-sidebar {
  width: 100%;
}

.sidebar-widget--toc {
  min-width: 0;
}

.sidebar-widget__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.8rem;
}

.sidebar-widget__head .sidebar-widget__title {
  margin: 0;
  padding: 0;
  border-bottom: 0;
}

.toc-collapse-btn {
  width: 2rem;
  height: 2rem;
  border-radius: 0.55rem;
  border: 1px solid rgba(14, 165, 255, 0.25);
  background: rgba(255, 255, 255, 0.86);
  color: #0f5fb3;
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s, border-color 0.2s;
}

.toc-collapse-btn:hover {
  background: rgba(14, 165, 255, 0.1);
  border-color: rgba(14, 165, 255, 0.4);
}

.blog-layout--toc-collapsed {
  grid-template-columns: minmax(0, 1fr) 48px;
  gap: 0.7rem;
}

.blog-layout--toc-collapsed .article {
  width: 100%;
  max-width: none;
}

.blog-layout--toc-collapsed .blog-sidebar {
  width: 48px;
  align-items: stretch;
}

.blog-layout--toc-collapsed .sidebar-widget {
  display: none;
}

.blog-layout--toc-collapsed .sidebar-widget--toc {
  display: block;
  width: 48px;
  padding: 0.45rem;
  min-height: 48px;
}

.blog-layout--toc-collapsed .sidebar-widget--toc nav,
.blog-layout--toc-collapsed .sidebar-widget--toc .toc-title-text {
  display: none;
}

.blog-layout--toc-collapsed .sidebar-widget--toc .sidebar-widget__head {
  margin: 0;
  justify-content: center;
}

.blog-layout--toc-collapsed .sidebar-widget--toc .sidebar-widget__title {
  display: none;
}

.blog-layout--toc-collapsed .toc-collapse-btn {
  transform: rotate(180deg);
}

@media (max-width: 1024px) {
  .blog-page.container {
    width: min(100% - 1.5rem, 1200px);
  }

  .blog-layout {
    grid-template-columns: minmax(0, 1fr) minmax(230px, 280px);
  }
}

@media (max-width: 840px) {
  .blog-layout,
  .blog-layout--toc-collapsed {
    grid-template-columns: 1fr;
  }

  .toc-collapse-btn {
    display: none;
  }

  .blog-layout--toc-collapsed .sidebar-widget {
    display: block;
  }

  .blog-layout--toc-collapsed .sidebar-widget--toc nav,
  .blog-layout--toc-collapsed .sidebar-widget--toc .toc-title-text,
  .blog-layout--toc-collapsed .sidebar-widget--toc .sidebar-widget__title {
    display: initial;
  }
}
