﻿/* ==========================================================================
   YIZERGE - High-End article Blog & Article Styles
   Inspired by Vidyst (vidyst.com) & Apple Clean Design Standards
   Ultra-clean typography, interactive UX features, 100% responsive
   ========================================================================== */

/* --------------------------------------------------------------------------
   0. TOP READING PROGRESS BAR (Articles)
   -------------------------------------------------------------------------- */
.reading-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: var(--text-main);
  z-index: 9999;
  transition: width 0.08s ease-out;
}

/* --------------------------------------------------------------------------
   0.1 UNIVERSAL RESPONSIVE TEXT & MIN-WIDTH SAFETY
   Guarantees no word clipping, overflow, or layout blowout on any screen
   -------------------------------------------------------------------------- */
.blog-h1,
.article-header-h1,
.featured-title,
.blog-card-title,
.blog-desc,
.featured-excerpt,
.blog-card-excerpt,
.article-lead,
.article-deck,
.article-lead-in,
.article-prose h2,
.article-prose h3,
.article-prose p,
.article-prose li,
.takeaways-title,
.takeaways-list li,
.widget-title,
.author-name,
.author-role,
.author-card-content h4,
.author-card-bio,
.footer-tagline,
.badge-category {
  overflow-wrap: break-word;
  word-break: break-word;
}

.featured-content,
.featured-img-wrap,
.blog-card-body,
.blog-card,
.author-info,
.author-chip,
.article-prose,
.article-layout {
  min-width: 0;
}

/* --------------------------------------------------------------------------
   MICRO-ANIMATIONS: Scroll-Entry Reveal System
   Apple-style spring physics, staggered card reveals, shimmer placeholders
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  .card-reveal {
    opacity: 0;
    transform: translateY(22px);
    transition:
      opacity 0.48s cubic-bezier(0.16, 1, 0.3, 1) calc(var(--card-index, 0) * 40ms),
      transform 0.52s cubic-bezier(0.16, 1, 0.3, 1) calc(var(--card-index, 0) * 40ms);
    will-change: opacity, transform;
  }
  .card-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
  }

  /* Shimmer placeholder while image loads */
  .lazy-img {
    background: linear-gradient(
      90deg,
      rgba(255,255,255,0.03) 0%,
      rgba(255,255,255,0.07) 50%,
      rgba(255,255,255,0.03) 100%
    );
    background-size: 200% 100%;
    /* animation: blog-shimmer disabled; */
  }
  .lazy-img.loaded {
    animation: none;
    background: none;
  }
  @keyframes blog-shimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
  }

  /* Read arrow nudge on card hover */
  .btn-read-link svg {
    transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .blog-card:hover .btn-read-link svg {
    transform: translateX(3px);
  }

  /* Author avatar subtle scale on card hover */
  .blog-card:hover .author-avatar {
    transform: scale(1.06);
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  }

  /* Category badge border brightens on hover */
  .blog-card:hover .badge-category {
    border-color: var(--border-strong);
  }

  /* Filter pill tactile press */
  .filter-pill:active {
    transform: scale(0.95);
  }
}

/* Respect reduced-motion: instant show, no shimmer */
@media (prefers-reduced-motion: reduce) {
  .card-reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .lazy-img { animation: none !important; }
}

/* --------------------------------------------------------------------------
   1. BLOG HUB / HERO SECTION
   -------------------------------------------------------------------------- */
.blog-hero {
  padding: 56px 0 32px;
  text-align: center;
  max-width: 860px;
  margin: 0 auto;
}

.blog-h1 {
  font-family: var(--font-display);
  font-size: clamp(32px, 4.2vw, 48px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.035em;
  color: var(--text-main);
  margin-bottom: 16px;
}

.blog-h1 .serif-italic {
  font-family: var(--font-display, var(--font-sans));
  font-style: normal;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.blog-desc {
  font-family: var(--font-sans);
  font-size: clamp(15px, 1.5vw, 17px);
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 660px;
  margin: 0 auto 24px;
}

.blog-chips {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

/* --------------------------------------------------------------------------
   2. TOOLBAR: SEARCH & CATEGORY FILTERS
   -------------------------------------------------------------------------- */
.blog-toolbar {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto 50px;
  align-items: center;
}

.blog-search-wrap {
  width: 100%;
  max-width: 540px;
}

.blog-search-inner {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-pill);
  padding: 0 16px;
  height: 46px;
  box-shadow: var(--shadow-sm);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.blog-search-inner:focus-within {
  border-color: var(--text-main);
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.06);
}

.blog-search-icon {
  color: var(--text-faint);
  margin-right: 10px;
  flex-shrink: 0;
}

.blog-search-input {
  flex: 1;
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 14.5px;
  color: var(--text-main);
  outline: none;
}

.blog-search-input::placeholder {
  color: var(--text-faint);
}

.search-kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 4px;
  background: var(--bg-chip);
  border: 1px solid var(--border-default);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-faint);
  margin-left: 8px;
}

.blog-search-clear {
  color: var(--text-faint);
  font-size: 18px;
  padding: 0 4px;
  cursor: pointer;
  margin-left: 6px;
}

.blog-search-clear:hover {
  color: var(--text-main);
}

.blog-filter-pills {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-pill {
  padding: 7px 16px;
  border-radius: var(--radius-pill);
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  color: var(--text-body);
  font-size: 13px;
  font-weight: 500;
  transition: all var(--transition-fast);
  cursor: pointer;
}

.filter-pill:hover {
  border-color: var(--border-strong);
  color: var(--text-main);
}

.filter-pill.active {
  background: var(--text-main);
  border-color: var(--text-main);
  color: #ffffff;
}

.blog-search-feedback {
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
  margin-top: -10px;
}

/* --------------------------------------------------------------------------
   3. FEATURED BLOG CARD (Grand Spotlight)
   -------------------------------------------------------------------------- */
.featured-card-wrap {
  margin-bottom: 48px;
}

.featured-card {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: center;
  gap: 36px;
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xl);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth), border-color var(--transition-smooth);
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  position: relative;
}

.featured-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-strong);
}

.featured-img-wrap {
  position: relative;
  border-radius: calc(var(--radius-xl) - 8px);
  overflow: hidden;
  background: var(--bg-subtle, #f8fafc);
  aspect-ratio: 1200 / 630;
  width: 100%;
  align-self: center;
}

.featured-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.featured-card:hover .featured-img-wrap img {
  transform: scale(1.02);
}




.featured-badge-overlay {
  display: none !important;
}

.featured-badge-overlay {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.featured-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 12px 16px 12px 0;
}

.article-meta-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
  font-family: var(--font-sans);
}

.badge-category {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: var(--bg-chip);
  border: 1px solid var(--border-default);
  font-family: var(--font-sans);
  font-size: 11.5px;
  font-weight: 500;
  color: var(--text-main);
  letter-spacing: -0.01em;
  text-decoration: none;
  transition: all var(--transition-fast);
}

.badge-category:hover {
  border-color: var(--border-strong);
  background: var(--bg-chip-hover);
}

.cat-dot, .chip-dot { display: none !important; width: 0 !important; height: 0 !important; visibility: hidden !important; }

.meta-dot {
  color: var(--border-strong);
  font-size: 13px;
  line-height: 1;
  user-select: none;
}

.article-read-time, .article-date {
  font-size: 12.5px;
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-weight: 400;
}

.badge-updated {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  color: var(--text-faint);
}

.featured-title {
  font-size: clamp(24px, 2.5vw, 34px);
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -0.03em;
  color: var(--text-main);
  margin-bottom: 14px;
}

.featured-excerpt {
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--text-body);
  margin-bottom: 22px;
}

.featured-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
  flex-wrap: wrap;
  gap: 12px;
}

.author-chip {
  display: flex;
  align-items: center;
  gap: 10px;
}

.author-avatar {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  object-fit: cover;
  border: 1px solid var(--border-default);
  background: var(--bg-subtle, #f1f5f9);
  flex-shrink: 0;
}

.author-info {
  display: flex;
  flex-direction: column;
}

.author-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
}

.author-role {
  font-size: 11px;
  color: var(--text-faint);
}

.btn-read-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-main);
  transition: gap var(--transition-fast);
}

.featured-card:hover .btn-read-link {
  gap: 10px;
}

/* --------------------------------------------------------------------------
   4. BLOG BENTO GRID (Standard Articles)
   -------------------------------------------------------------------------- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 80px;
}

.blog-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth), border-color var(--transition-smooth);
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-strong);
}

.blog-card-thumb-wrap {
  position: relative;
  aspect-ratio: 1200 / 630;
  background: var(--bg-subtle, #f8fafc);
  overflow: hidden;
  border-bottom: 1px solid var(--border-subtle);
}

.blog-card-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.blog-card:hover .blog-card-thumb-wrap img {
  transform: scale(1.03);
}

.blog-card-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.blog-card-title {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.02em;
  color: var(--text-main);
  margin-bottom: 10px;
  overflow-wrap: break-word;
  word-break: break-word;
}

.blog-card-excerpt {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-body);
  margin-bottom: 18px;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  overflow-wrap: break-word;
  word-break: break-word;
}

.blog-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
  flex-wrap: wrap;
  gap: 10px;
}

/* Scalable Blog Engine: Infinite / Paginated Controls (1,000+ blogs ready) */
.blog-pagination-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 48px auto 72px;
  gap: 14px;
}

.blog-pagination-info {
  font-size: 13px;
  color: var(--text-faint);
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}

.btn-load-more {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 46px;
  padding: 0 28px;
  border-radius: var(--radius-pill);
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  color: var(--text-main);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

.btn-load-more:hover {
  background: var(--border-default);
  border-color: var(--border-strong);
  transform: translateY(-1px);
}

.btn-load-more:active {
  transform: translateY(0);
}

.btn-load-more.hidden {
  display: none !important;
}

/* --------------------------------------------------------------------------
   5. ARTICLE PAGE LAYOUT (Reading View)
   -------------------------------------------------------------------------- */
.article-wrap {
  max-width: 1160px;
  margin: 0 auto;
  padding: 32px 24px 80px;
}

/* Breadcrumb Bar */
.article-breadcrumb {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  color: var(--text-faint);
  margin-bottom: 14px;
  font-family: var(--font-sans);
  flex-wrap: wrap;
}

.article-breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.article-breadcrumb a:hover {
  color: var(--text-main);
}

.breadcrumb-sep {
  color: var(--border-strong);
  font-size: 11px;
  user-select: none;
}

.breadcrumb-current {
  color: var(--text-muted);
  font-weight: 500;
}

/* Article Hero Header */
.article-header {
  max-width: 820px;
  margin-bottom: 24px;
}

.meta-sep {
  color: var(--border-strong);
  font-size: 11px;
  user-select: none;
  padding: 0 2px;
}

/* Article Title: Majestic, Confident Display Typography */
.article-header-h1 {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 46px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--text-main);
  margin: 0 0 12px 0;
}

/* Standfirst Deck: article Instrument Serif Italic Flair */
.article-deck {
  font-family: var(--font-sans);
  font-style: normal;
  font-size: clamp(17px, 1.9vw, 21px);
  font-weight: 500;
  line-height: 1.5;
  color: var(--text-muted);
  letter-spacing: -0.01em;
  margin: 0 0 14px 0;
  max-width: 800px;
}

/* Rich article Lead Paragraph: Engaging Prose Thesis */
.article-lead {
  font-family: var(--font-sans);
  font-size: clamp(16px, 1.6vw, 18px);
  line-height: 1.62;
  color: var(--text-body);
  letter-spacing: -0.005em;
  margin: 0 0 22px 0;
  max-width: 780px;
}

/* Author & Social Share Row */
.article-byline-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-top: 1px solid var(--border-default);
  border-bottom: 1px solid var(--border-default);
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 14px;
}

.share-action-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.share-action-group .btn-share,
.share-action-group .btn-share-yt,
.share-action-group .btn-release-youtube,
.btn-share {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  height: 32px !important;
  padding: 0 13px !important;
  border-radius: var(--radius-pill, 9999px) !important;
  background: var(--bg-card) !important;
  border: 1px solid var(--border-default) !important;
  font-family: var(--font-sans) !important;
  font-size: 12.5px !important;
  font-weight: 500 !important;
  color: var(--text-body) !important;
  cursor: pointer !important;
  transition: all var(--transition-fast) !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  box-sizing: border-box !important;
  width: auto !important;
  box-shadow: none !important;
}

.share-action-group .btn-share:hover,
.share-action-group .btn-share-yt:hover,
.share-action-group .btn-release-youtube:hover,
.btn-share:hover {
  background: var(--bg-chip) !important;
  border-color: var(--border-strong) !important;
  color: var(--text-main) !important;
  transform: translateY(-1px) !important;
}

/* Article Featured Banner */
.article-featured-banner {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-subtle, #f8fafc);
  border: 1px solid var(--border-default);
  margin-bottom: 32px;
  box-shadow: var(--shadow-sm);
}

.article-featured-banner img {
  width: 100%;
  height: auto;
  display: block;
}

/* Article Lead Prose in Main Column */
.article-lead-in {
  font-family: var(--font-sans);
  font-size: 17.5px;
  line-height: 1.68;
  color: var(--text-body);
  margin: 0 0 28px 0;
  font-weight: 400;
  letter-spacing: -0.005em;
}

/* Article Layout: Two Columns (Main Prose + Sticky Sidebar) */
.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 320px);
  gap: clamp(36px, 4vw, 48px);
  align-items: stretch;
}

/* --------------------------------------------------------------------------
   6. ARTICLE SIDEBAR (Sticky Floating TOC, Specs & Early Tester Card)
   Floating constantly alongside the article prose on desktop
   -------------------------------------------------------------------------- */
.article-sidebar {
  position: relative;
  height: 100%;
  min-width: 0;
}

.sidebar-sticky-inner,
.article-sidebar-sticky {
  position: sticky;
  top: 80px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-height: none;
  overflow: visible;
}

@media (max-height: 760px) {
  .sidebar-sticky-inner,
  .article-sidebar-sticky {
    max-height: calc(100vh - 96px);
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
  }
}

.sidebar-widget {
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.widget-title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-main);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.toc-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toc-link {
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--text-muted);
  text-decoration: none;
  display: block;
  padding-left: 10px;
  border-left: 2px solid transparent;
  transition: all var(--transition-fast);
}

.toc-link:hover {
  color: var(--text-main);
  border-left-color: var(--border-strong);
}

.toc-link.active {
  color: var(--text-main);
  font-weight: 600;
  border-left-color: var(--text-main);
}

.specs-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 12.5px;
}

.specs-item {
  display: flex;
  justify-content: space-between;
  color: var(--text-body);
}

.specs-item strong {
  color: var(--text-main);
  font-family: var(--font-mono);
}

.sidebar-cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 42px;
  border-radius: var(--radius-pill);
  background: var(--text-main);
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  margin-top: 12px;
  transition: opacity var(--transition-fast);
}

.sidebar-cta-btn:hover {
  opacity: 0.9;
}

/* Related Comparisons & External Sidebar Guides */
.sidebar-rel-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0;
  margin: 0;
}

.sidebar-rel-link {
  font-size: 13px;
  line-height: 1.4;
  color: var(--text-body);
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 12px;
  border-radius: var(--radius-sm, 6px);
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-subtle);
  font-weight: 500;
  transition: all var(--transition-fast);
}

.sidebar-rel-link:hover {
  color: var(--text-main);
  background: var(--bg-chip-hover);
  border-color: var(--border-strong);
  transform: translateX(2px);
}

.sidebar-rel-link .rel-arrow {
  font-size: 12px;
  color: var(--text-faint);
  transition: transform var(--transition-fast), color var(--transition-fast);
}

.sidebar-rel-link:hover .rel-arrow {
  color: var(--text-main);
  transform: translateX(3px);
}

/* Mobile Quick-Jump Table of Contents Accordion */
.mobile-toc-accordion {
  display: none;
  margin: 24px 0 32px;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  background: var(--bg-card);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.mobile-toc-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  user-select: none;
  background: var(--bg-card-subtle);
}

.mobile-toc-summary::-webkit-details-marker {
  display: none;
}

.mobile-toc-icon {
  transition: transform 0.25s ease;
  color: var(--text-muted);
}

.mobile-toc-accordion[open] .mobile-toc-icon {
  transform: rotate(180deg);
}

.mobile-toc-accordion .toc-list {
  padding: 14px 18px 18px;
  margin: 0;
}

/* Defensive backward-compatibility aliases for sidebar */
.sidebar-card {
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.sidebar-title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-main);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sidebar-toc {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Article Comparison Tables */
.comparison-table-wrapper {
  overflow-x: auto;
  margin: 28px 0 36px;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  background: var(--bg-card);
  box-shadow: var(--shadow-sm);
  -webkit-overflow-scrolling: touch;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 13.5px;
}

.comparison-table th {
  padding: 14px 18px;
  background: var(--bg-card-subtle);
  color: var(--text-muted);
  font-weight: 600;
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 1px solid var(--border-default);
  white-space: nowrap;
}

.comparison-table th.col-highlight {
  background: rgba(220, 252, 231, 0.4);
  color: #15803d;
  font-weight: 700;
}

[data-theme="dark"] .comparison-table th.col-highlight {
  background: rgba(22, 101, 52, 0.4);
  color: #86efac;
}

.comparison-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-body);
}

.comparison-table td.col-highlight {
  background: rgba(220, 252, 231, 0.18);
  color: var(--text-main);
  font-weight: 600;
}

[data-theme="dark"] .comparison-table td.col-highlight {
  background: rgba(22, 101, 52, 0.18);
}

.comparison-table tr:last-child td {
  border-bottom: none;
}


/* --------------------------------------------------------------------------
   7. ARTICLE PROSE & article CONTENT STYLING
   -------------------------------------------------------------------------- */
.article-prose {
  font-size: 16.5px;
  line-height: 1.75;
  color: var(--text-body);
}

.article-prose p {
  margin-bottom: 24px;
}

.article-prose h2 {
  font-size: clamp(24px, 3vw, 30px);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.025em;
  color: var(--text-main);
  margin: 48px 0 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-subtle);
  scroll-margin-top: 80px;
}

.article-prose h3 {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.015em;
  color: var(--text-main);
  margin: 32px 0 14px;
  scroll-margin-top: 80px;
}

.article-prose ul, .article-prose ol {
  margin: 0 0 24px 24px;
}

.article-prose li {
  margin-bottom: 10px;
  padding-left: 4px;
}

.article-prose strong {
  color: var(--text-main);
}

.article-prose code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--bg-chip);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
}

.article-prose kbd {
  font-family: var(--font-mono);
  font-size: 0.85em;
  padding: 2px 7px;
  border-radius: 5px;
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
  color: var(--text-main);
}

/* Key Takeaways Callout Box */
.takeaways-box {
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-default);
  border-left: 4px solid var(--text-main);
  border-radius: var(--radius-md);
  padding: 24px 28px;
  margin: 0 0 36px;
}

.takeaways-title {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-main);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.takeaways-list {
  list-style: none;
  margin: 0 !important;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.takeaways-list li {
  padding-left: 24px;
  position: relative;
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-main);
  margin: 0;
}

.takeaways-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--text-main);
  font-weight: 700;
}

/* Alert Boxes (Pro Tip & Caution) */
.alert-box {
  padding: 20px 24px;
  border-radius: var(--radius-md);
  margin: 30px 0;
  font-size: 15px;
  line-height: 1.6;
}

.alert-tip {
  background: #fbfbfb;
  border: 1px solid #e2e2e2;
  border-left: 4px solid #111111;
}

.alert-warning {
  background: #fffbf5;
  border: 1px solid #fae1c3;
  border-left: 4px solid #d97706;
}

.alert-title {
  font-size: 13.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-main);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Visual Flowchart / Diagram Container */
.diagram-wrap {
  background: #ffffff;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  padding: 30px 24px;
  margin: 36px 0;
  color: var(--text-main, #111111);
  overflow-x: auto;
}

.diagram-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-subtle);
}

.diagram-title {
  font-size: 13px;
  font-family: var(--font-mono);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-main);
}

.diagram-tag {
  display: none !important;
  font-size: 11px;
  font-family: var(--font-mono);
  color: #888899;
  background: var(--bg-chip); border: 1px solid var(--border-subtle);
  padding: 3px 8px;
  border-radius: 4px;
}

/* Flowchart Visual Elements */
.flowchart-nodes {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-width: 600px;
  padding: 10px 0;
}

.flow-node {
  background: #f9fafb;
  border: 1.5px solid var(--border-default);
  border-radius: 10px;
  padding: 16px;
  flex: 1;
  text-align: center;
}

.flow-node.highlight {
  border-color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

.flow-node-title {
  font-size: 13.5px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 4px;
}

.flow-node-desc {
  font-size: 11.5px;
  color: #9999aa;
  font-family: var(--font-mono);
}

.flow-arrow {
  color: #555566;
  font-size: 20px;
  flex-shrink: 0;
}


/* Responsive Pipeline & Shortcuts Workflow Cards */
.sc-pipeline-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  padding: 4px 0 0 0;
  box-sizing: border-box;
}

.sc-step-card {
  width: 100%;
  background: #f8f9fa;
  border: 1.75px solid #111111;
  border-radius: 8px;
  padding: 13px 18px;
  text-align: center;
  box-sizing: border-box;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.sc-step-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
}

.sc-step-card.final-step {
  background: #111111;
  border-color: #111111;
  color: #ffffff;
}

.sc-step-title {
  font-size: 13.5px;
  font-weight: 700;
  color: #111111;
  margin-bottom: 5px;
  line-height: 1.35;
}

.sc-step-card.final-step .sc-step-title {
  color: #ffffff;
}

.sc-step-meta {
  font-size: 11.5px;
  font-family: var(--font-mono, monospace);
  color: #555555;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 5px;
  line-height: 1.4;
}

.sc-step-card.final-step .sc-step-meta {
  color: #B4D94E;
  font-weight: 600;
}

.sc-kbd {
  display: inline-block;
  padding: 2px 6px;
  font-family: var(--font-mono, monospace);
  font-size: 11px;
  font-weight: 600;
  color: #111111;
  background: #ffffff;
  border: 1px solid #d4d4d8;
  border-radius: 4px;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08);
  line-height: 1.2;
}

.sc-step-card.final-step .sc-kbd {
  color: #111111;
  background: #B4D94E;
  border-color: #a3c93e;
}

.sc-sep {
  color: #999999;
  font-size: 10px;
}

.sc-arrow-connector {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 24px;
  color: #111111;
  flex-shrink: 0;
}

.sc-arrow-connector svg {
  width: 14px;
  height: 20px;
  display: block;
}

.sc-callout-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
  padding: 11px 22px;
  background: #f4f4f5;
  border: 1.5px solid #e4e4e7;
  border-radius: 9999px;
  font-size: 12.5px;
  font-weight: 600;
  color: #111111;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
  max-width: 100%;
  text-align: center;
  line-height: 1.4;
  outline: none;
}

.sc-callout-pill:hover {
  background: #ebebee;
  border-color: #d4d4d8;
  transform: translateY(-1px);
}

.sc-callout-pill:active {
  transform: scale(0.98);
}

@media (max-width: 640px) {
  .sc-step-card {
    padding: 11px 12px;
  }
  .sc-step-title {
    font-size: 12.5px;
  }
  .sc-step-meta {
    font-size: 10.5px;
    gap: 4px;
  }
  .sc-kbd {
    padding: 1.5px 5px;
    font-size: 10px;
  }
  .sc-arrow-connector {
    height: 18px;
  }
  .sc-arrow-connector svg {
    height: 16px;
  }
  .sc-callout-pill {
    padding: 9px 14px;
    font-size: 11.5px;
    border-radius: 20px;
  }
  .prose-table th, .prose-table td {
    padding: 9px 12px;
    font-size: 12.5px;
  }
}

/* Software Screenshot Showcase Inside Articles */
.software-showcase-box {
  margin: 36px 0;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #ffffff;
  box-shadow: var(--shadow-md);
}

.software-showcase-box img {
  width: 100%;
  height: auto;
  display: block;
}

.software-showcase-caption {
  padding: 14px 20px;
  background: var(--bg-card);
  border-top: 1px solid var(--border-subtle);
  font-size: 13px;
  color: var(--text-body);
  display: flex;
  align-items: center;
  gap: 10px;
}

.software-showcase-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
  background: var(--bg-chip);
  border: 1px solid var(--border-default);
  color: var(--text-main);
  flex-shrink: 0;
}

/* Technical Comparison & Shortcut Tables */
.table-wrap {
  overflow-x: auto;
  margin: 32px 0;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
}

.prose-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 14px;
}

.prose-table th {
  background: var(--bg-card-subtle);
  color: var(--text-main);
  font-weight: 600;
  padding: 12px 18px;
  border-bottom: 1px solid var(--border-default);
}

.prose-table td {
  padding: 12px 18px;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-body);
}

.prose-table tr:last-child td {
  border-bottom: none;
}

.prose-table tr:hover td {
  background: var(--bg-card-subtle);
}

.table-badge-yes {
  display: inline-flex;
  padding: 2px 8px;
  border-radius: 4px;
  background: #eefbee;
  color: #1e7e34;
  font-size: 12px;
  font-weight: 600;
}

.table-badge-no {
  display: inline-flex;
  padding: 2px 8px;
  border-radius: 4px;
  background: #fdf2f2;
  color: #c53030;
  font-size: 12px;
  font-weight: 600;
}

/* FAQ Accordion Inside Articles (Fluid Eased Animation) */
.article-faq {
  margin: 48px 0;
}

.faq-item-blog {
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  overflow: hidden;
  background: var(--bg-card);
  transition: border-color 0.22s ease, box-shadow 0.22s ease;
}

.faq-item-blog:hover {
  border-color: var(--border-strong);
}

.faq-q-blog {
  padding: 18px 22px;
  background: var(--bg-card);
  font-size: 16px;
  font-weight: 600;
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
  gap: 16px;
}

.faq-icon-blog {
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
  color: var(--text-faint);
  flex-shrink: 0;
}

.faq-item-blog.open .faq-icon-blog {
  transform: rotate(180deg);
  color: var(--text-main);
}

.faq-a-blog {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
  opacity: 0;
  background: var(--bg-card);
}

.faq-a-blog-inner {
  min-height: 0;
  overflow: hidden;
  padding: 0 22px 18px;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--text-body);
}

.faq-a-blog-inner p {
  margin: 0;
}

.faq-item-blog.open .faq-a-blog {
  grid-template-rows: 1fr;
  opacity: 1;
}

/* Author Bio Card */
.article-author-card {
  margin: 50px 0;
  padding: 28px;
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  gap: 22px;
}

.author-card-avatar {
  width: 68px;
  height: 68px;
  border-radius: 16px;
  object-fit: cover;
  border: 1px solid var(--border-default);
  background: var(--bg-subtle, #f1f5f9);
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.author-card-content h4 {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 4px;
}

.author-card-role {
  font-size: 12.5px;
  font-family: var(--font-sans);
  color: var(--text-faint);
  margin-bottom: 10px;
}

.author-card-bio {
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-body);
  margin-bottom: 12px;
}

.author-card-socials {
  display: flex;
  gap: 14px;
  font-size: 13px;
  color: var(--text-main);
  font-weight: 500;
}

.author-card-socials a:hover {
  text-decoration: underline;
}

/* Related Guides Section */
.related-guides-wrap {
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid var(--border-default);
}

.related-guides-title {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-main);
  margin-bottom: 24px;
}

/* Toast Notification (Copy Link) */
.toast-notice {
  position: fixed;
  bottom: 28px;
  right: 28px;
  background: var(--text-main);
  color: #ffffff;
  padding: 12px 20px;
  border-radius: var(--radius-pill);
  font-size: 13.5px;
  font-weight: 500;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 10000;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast-notice.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* Back to Top Floating Button */
.btn-back-to-top {
  position: fixed;
  bottom: 28px;
  left: 28px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  color: var(--text-main);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: all var(--transition-fast);
}

.btn-back-to-top.show {
  opacity: 1;
  pointer-events: auto;
}

.btn-back-to-top:hover {
  background: var(--border-subtle);
  transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   8. BLOG BOTTOM CTA BANNER (Windows Download Spotlight - Clean & Flawless)
   -------------------------------------------------------------------------- */
/* Blog Bottom CTA Banner (Windows 11 Dark Bloom Wallpaper) */
.blog-cta-banner {
  position: relative !important;
  isolation: isolate;
  overflow: hidden !important;
  margin: 0 auto 80px;
  max-width: 1000px;
  padding: 56px 40px;
  background-color: #0b0f17 !important;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  box-shadow: 0 24px 60px -15px rgba(0, 0, 0, 0.75),
              inset 0 1px 0 rgba(255, 255, 255, 0.25) !important;
  color: #ffffff !important;
  text-align: center;
}

.blog-cta-banner::before {
  content: '';
  position: absolute;
  inset: -12px;
  background: url('../assets/windows11-dark-bloom.png') center 55% / cover no-repeat !important;
  filter: blur(3px) brightness(1.22) contrast(1.08);
  -webkit-filter: blur(3px) brightness(1.22) contrast(1.08);
  z-index: -2;
  transform: scale(1.04);
  pointer-events: none;
}

.blog-cta-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 10, 15, 0.28) 0%, rgba(5, 7, 10, 0.55) 100%) !important;
  z-index: -1;
  pointer-events: none;
}

.blog-cta-banner > * {
  position: relative;
  z-index: 2;
}

.blog-cta-banner .hero-chip {
  background: rgba(255, 255, 255, 0.14) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35) !important;
}

.blog-cta-glow {
  display: none !important;
}

.blog-cta-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 14px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.12) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: #e2e8f0 !important;
  margin-bottom: 18px;
  backdrop-filter: blur(10px);
}

.blog-cta-pill .cta-pill-dot {
  display: none !important;
}

.blog-cta-title {
  font-size: clamp(26px, 4vw, 42px);
  font-weight: 700;
  line-height: 1.18;
  margin-bottom: 14px;
  letter-spacing: -0.03em;
  color: #ffffff !important;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.85) !important;
  overflow-wrap: break-word;
  word-break: break-word;
  text-wrap: balance;
}

.blog-cta-desc {
  font-size: clamp(14.5px, 1.8vw, 16px);
  color: #e2e8f0 !important;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.7) !important;
  max-width: 620px;
  margin: 0 auto 32px;
  line-height: 1.6;
}

.blog-cta-banner .waitlist-input-wrapper {
  background: rgba(18, 22, 30, 0.75) !important;
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.45), 0 8px 24px rgba(0, 0, 0, 0.4) !important;
}

.blog-cta-banner .waitlist-input-wrapper:focus-within {
  border-color: var(--brand-primary, #B4D94E) !important;
  box-shadow: 0 0 0 3px rgba(180, 217, 78, 0.3), 0 12px 28px rgba(0, 0, 0, 0.5) !important;
}

.blog-cta-banner .waitlist-input-icon {
  color: #94a3b8 !important;
}

.blog-cta-banner .waitlist-email-input {
  color: #ffffff !important;
}

.blog-cta-banner .waitlist-email-input::placeholder {
  color: #94a3b8 !important;
}

.blog-cta-banner .blog-cta-micro {
  color: #cbd5e1 !important;
}

.blog-cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.btn-blog-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 26px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 14.5px;
  text-decoration: none;
  transition: all var(--transition-fast);
}

.btn-blog-cta.primary {
  background: #ffffff;
  color: #111111;
}

.btn-blog-cta.primary:hover {
  background: #e8e8e8;
  transform: translateY(-1px);
}

.btn-blog-cta.secondary {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  padding: 0 22px;
}

.btn-blog-cta.secondary:hover {
  background: rgba(255, 255, 255, 0.14);
  transform: translateY(-1px);
}

/* --------------------------------------------------------------------------
   9. article BLOG FOOTER (Clean Minimal layout + Masked Wordmark)
   -------------------------------------------------------------------------- */
.footer-wrap {
  padding: 80px 0 36px;
  background: #ffffff;
  border-top: 1px solid var(--border-subtle);
  margin-top: 60px;
}

.footer-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.footer-top-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border-subtle);
  flex-wrap: wrap;
}

.footer-wrap .footer-brand-col,
.footer-brand-col {
  flex: 0 1 auto;
  height: auto;
  min-height: 0;

  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 360px;
}

.brand-wordmark {
  font-family: 'Geist', var(--font-display);
  font-size: 20px;
  letter-spacing: -0.03em;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #0C0C0E;
  display: inline-flex;
  align-items: center;
  line-height: 1;
  text-transform: uppercase;
  user-select: none;
  transition: opacity 0.15s ease;
}

.brand-link:hover .brand-wordmark,
.footer-brand-logo:hover .brand-wordmark {
  opacity: 0.88;
}

.brand-wordmark .brand-special {
  color: #D81E1F;
}

.footer-brand-col .brand-link {
  display: inline-flex;
  align-items: center;
  gap: 0;
  text-decoration: none;
  color: var(--text-main);
}

.footer-brand-col .brand-wordmark {
  font-size: 22px;
}

.footer-brand-col .brand-icon {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  object-fit: cover;
}

.footer-tagline {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 28px;
  align-items: center;
}

.footer-links a {
  font-size: 14px;
  color: var(--text-body);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-links a:hover,
.footer-links a.active {
  color: var(--text-main);
}

.footer-sub-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 0 0;
  font-size: 13px;
  color: var(--text-faint);
}

.footer-sub-row a {
  color: var(--text-body);
}

.footer-sub-row a:hover {
  color: var(--text-main);
  text-decoration: underline;
}

.footer-social-icons {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-icon-pill {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-chip);
  border: 1px solid var(--border-default);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
  text-decoration: none;
  transition: all var(--transition-fast);
}

.footer-icon-pill:hover {
  background: var(--border-strong);
  transform: translateY(-1px);
}

.footer-giant-wordmark-wrap {
  width: 100%;
  overflow: hidden;
  margin-top: 20px;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  user-select: none;
  pointer-events: none;
}

.footer-giant-wordmark {
  font-size: clamp(48px, 18vw, 280px);
  font-weight: 800;
  line-height: 0.82;
  letter-spacing: -0.05em;
  text-align: center;
  padding: 0;
  margin: 0;
  background: linear-gradient(180deg, #d8d8de 0%, #ebebef 45%, #ffffff 95%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  user-select: none;
  -webkit-user-select: none;
  pointer-events: none;
  white-space: nowrap;
  display: block;
}


/* --------------------------------------------------------------------------
   10. FULL MULTI-DEVICE RESPONSIVE BREAKPOINTS
   Laptops, Tablets, and Mobile Phones (100% Fluid & Zero Text Cutting)
   -------------------------------------------------------------------------- */

/* Large Tablets & Small Laptops (Smooth 3-to-2 column transition) */
@media (max-width: 1140px) {
  .blog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
  }
  .featured-card {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 22px;
  }
  .featured-content {
    padding: 0;
  }
  .featured-img-wrap {
    aspect-ratio: 16 / 9;
    max-height: 420px;
  }
}

/* Standard Tablet & Mobile Viewport */
@media (max-width: 1024px) {
  .article-layout {
    display: flex;
    flex-direction: column;
    gap: 36px;
  }
  .mobile-toc-accordion {
    display: block;
  }
  .article-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    margin-top: 16px;
    height: auto;
  }
  .sidebar-sticky-inner,
  .article-sidebar-sticky {
    position: static;
    top: auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-height: none;
    overflow: visible;
  }
}

/* Small Tablets / Phablets */
@media (max-width: 860px) {
  .blog-hero {
    padding: 48px 0 28px;
  }
  .blog-h1 {
    font-size: clamp(28px, 5.2vw, 42px);
    line-height: 1.15;
  }
  .featured-title {
    font-size: clamp(22px, 3.8vw, 28px);
  }
  .blog-grid {
    gap: 20px;
  }
}

/* Mobile & Portrait Tablets */
@media (max-width: 768px) {
  .article-wrap {
    padding: 28px 18px 44px;
  }
  .featured-card {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 18px;
    border-radius: var(--radius-lg);
  }
  .featured-content {
    padding: 0;
  }
  .featured-img-wrap {
    aspect-ratio: 16 / 9;
    border-radius: calc(var(--radius-lg) - 6px);
  }
  .featured-title {
    font-size: clamp(20px, 5.5vw, 25px);
    line-height: 1.28;
    margin-bottom: 12px;
  }
  .featured-excerpt {
    font-size: 14.5px;
    line-height: 1.58;
    margin-bottom: 16px;
  }
  .blog-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
    margin-bottom: 52px;
  }
  .blog-h1 {
    font-size: clamp(24px, 6.5vw, 32px);
    line-height: 1.2;
    margin-bottom: 12px;
  }
  .blog-h1 br,
  .article-header-h1 br {
    display: none; /* Flow naturally on mobile without harsh line breaks */
  }
  .blog-desc {
    font-size: 15px;
    line-height: 1.55;
    margin-bottom: 20px;
  }
  .search-kbd {
    display: none !important; /* Hide desktop keyboard shortcut on touch screens */
  }
  .article-header-h1 {
    font-size: clamp(24px, 5.8vw, 32px);
    line-height: 1.22;
    margin: 12px 0 16px;
  }
  .article-lead {
    font-size: 15.5px;
    line-height: 1.55;
    margin-bottom: 22px;
  }
  .article-byline-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 0;
    margin-bottom: 28px;
  }
  .share-action-group {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
    width: 100% !important;
  }
  .share-action-group .btn-share,
  .share-action-group .btn-share-yt,
  .share-action-group .btn-release-youtube {
    width: 100% !important;
    height: 36px !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    padding: 0 8px !important;
    justify-content: center !important;
    text-align: center !important;
  }
  .article-featured-banner {
    margin-bottom: 32px;
    border-radius: var(--radius-md);
  }
  .article-prose {
    font-size: 15.5px;
    line-height: 1.7;
  }
  .article-prose h2 {
    font-size: clamp(20px, 5vw, 24px);
    margin: 36px 0 14px;
    scroll-margin-top: 70px;
  }
  .article-prose h3 {
    font-size: 18px;
    margin: 26px 0 12px;
    scroll-margin-top: 70px;
  }
  .takeaways-box {
    padding: 18px 20px;
    margin: 24px 0 30px;
  }
  .takeaways-list li {
    font-size: 14px;
    line-height: 1.5;
  }
  .alert-box {
    padding: 16px 18px;
    margin: 22px 0;
    font-size: 14px;
  }
  .diagram-wrap {
    padding: 20px 14px;
    margin: 28px 0;
    border-radius: var(--radius-md);
    -webkit-overflow-scrolling: touch;
  }
  .diagram-wrap svg {
    max-width: 100% !important;
    height: auto !important;
  }
  .article-author-card {
    flex-direction: column;
    text-align: center;
    padding: 22px 18px;
    gap: 14px;
    margin: 36px 0;
  }
  .author-card-avatar {
    width: 60px;
    height: 60px;
  }
  .author-card-socials {
    justify-content: center;
  }
  .btn-back-to-top {
    left: 14px;
    bottom: 14px;
    width: 38px;
    height: 38px;
  }
  .blog-cta-banner {
    padding: 36px 24px;
    margin-bottom: 50px;
    border-radius: var(--radius-lg);
  }
  .blog-cta-title {
    font-size: clamp(22px, 5.5vw, 28px);
    margin-bottom: 12px;
  }
  .blog-cta-desc {
    font-size: 14px;
    margin-bottom: 24px;
  }
  .footer-wrap {
    padding: 36px 0 24px;
    margin-top: 32px;
  }
  .footer-inner {
    padding-left: 18px;
    padding-right: 18px;
  }
  .footer-top-row {
    flex-direction: column;
    gap: 20px;
    padding-bottom: 24px;
  }
  .footer-wrap .footer-brand-col,
  .footer-brand-col {
    max-width: 100%;
    flex: 0 1 auto;
    height: auto;
    min-height: 0;
  }
  .footer-links {
    gap: 12px 20px;
  }
  .footer-links a {
    font-size: 13.5px;
  }
    .footer-sub-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 20px 0 0;
  }
  .footer-giant-wordmark-wrap {
    margin-top: 14px;
    padding: 0;
  }

}

/* Medium & Small Phones (< 640px) */
@media (max-width: 640px) {
  .blog-hero {
    padding: 36px 0 22px;
  }
  .blog-chips {
    gap: 8px;
    margin-bottom: 24px;
  }
  .blog-chips .platform-chip {
    padding: 5px 12px;
    font-size: 12px;
  }
  .blog-search-inner {
    height: 42px;
    padding: 0 14px;
  }
  .blog-search-input {
    font-size: 13.5px;
  }
  .blog-card-body {
    padding: 18px;
  }
  .article-wrap {
    padding: 22px 14px 36px;
  }
}

/* Compact Mobile Devices (< 480px) */
@media (max-width: 480px) {
  .blog-filter-pills {
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding: 4px 2px 10px;
    width: 100%;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .blog-filter-pills::-webkit-scrollbar {
    display: none;
  }
  .filter-pill {
    flex-shrink: 0;
    white-space: nowrap;
    padding: 6px 13px;
    font-size: 12px;
  }
  .blog-grid {
    gap: 16px;
  }
  .blog-card-body {
    padding: 16px;
  }
  .blog-card-title {
    font-size: 16.5px;
    line-height: 1.35;
    margin-bottom: 8px;
  }
  .blog-card-excerpt {
    font-size: 13.5px;
    line-height: 1.55;
    margin-bottom: 14px;
    -webkit-line-clamp: 4;
  }
  .blog-card-footer {
    gap: 8px;
    padding-top: 12px;
  }
  .featured-card {
    padding: 14px;
    gap: 14px;
    border-radius: var(--radius-md);
  }
  


.featured-badge-overlay {
  display: none !important;
}

.featured-badge-overlay {
    top: 10px;
    left: 10px;
    padding: 3px 10px;
    font-size: 10px;
  }
  .featured-title {
    font-size: 19px;
    line-height: 1.28;
  }
  .featured-excerpt {
    font-size: 13.5px;
    line-height: 1.52;
  }
  .article-header-h1 {
    font-size: clamp(21px, 6.8vw, 26px);
  }
  .article-breadcrumb {
    font-size: 12px;
    gap: 6px;
  }
  .article-breadcrumb span:last-child {
    display: inline-block;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: bottom;
  }
  .takeaways-box {
    padding: 15px;
  }
  .table-wrap {
    margin: 20px 0;
    -webkit-overflow-scrolling: touch;
  }
  .prose-table th, .prose-table td {
    padding: 9px 11px;
    font-size: 12.5px;
  }
  .blog-cta-banner {
    padding: 28px 16px;
  }
  .blog-cta-actions {
    flex-direction: column;
    width: 100%;
  }
  .btn-blog-cta {
    width: 100%;
    height: 44px;
    font-size: 13.5px;
  }
  .footer-inner {
    padding-left: 14px;
    padding-right: 14px;
  }
  .footer-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px 14px;
    width: 100%;
  }

}

/* Ultra-Compact Screens (< 360px) */
@media (max-width: 360px) {
  .blog-h1 {
    font-size: 22px;
  }
  .article-header-h1 {
    font-size: 20px;
  }
  .featured-title {
    font-size: 17.5px;
  }
  .blog-card-title {
    font-size: 15.5px;
  }
  .btn-load-more {
    width: 100%;
    justify-content: center;
  }
}


/* ==========================================================================
   BLOG article INLINE & SIDEBAR WAITLIST COMPONENTS
   Minimalist Monochrome, Apple/Vidyst Token Alignment, 100% Responsive
   ========================================================================== */

/* 1. Article End Beta Banner Card (Windows 11 Dark Bloom Wallpaper) */
.article-beta-card {
  position: relative !important;
  isolation: isolate;
  overflow: hidden !important;
  margin: 44px 0 36px 0;
  padding: 36px 32px;
  background-color: #0b0f17 !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  border-radius: var(--radius-lg, 20px);
  box-shadow: 0 20px 50px -12px rgba(0, 0, 0, 0.75),
              inset 0 1px 0 rgba(255, 255, 255, 0.25) !important;
  color: #ffffff !important;
}

.article-beta-card::before {
  content: '';
  position: absolute;
  inset: -12px;
  background: url('../assets/windows11-dark-bloom.png') center 55% / cover no-repeat !important;
  filter: blur(3px) brightness(1.22) contrast(1.08);
  -webkit-filter: blur(3px) brightness(1.22) contrast(1.08);
  z-index: -2;
  transform: scale(1.04);
  pointer-events: none;
}

.article-beta-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 10, 15, 0.28) 0%, rgba(5, 7, 10, 0.55) 100%) !important;
  z-index: -1;
  pointer-events: none;
}

.article-beta-card > * {
  position: relative;
  z-index: 2;
}

.article-beta-badge {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.14) !important;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
  color: #ffffff !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  margin-bottom: 14px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.article-beta-title {
  font-family: var(--font-display, var(--font-sans));
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: #ffffff !important;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.85);
  margin-bottom: 8px;
  line-height: 1.3;
}

.article-beta-desc {
  font-size: 14.5px;
  line-height: 1.55;
  color: #e2e8f0 !important;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.7);
  margin-bottom: 20px;
  max-width: 580px;
}

.article-beta-card .waitlist-input-wrapper {
  background: rgba(18, 22, 30, 0.75) !important;
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.45), 0 8px 24px rgba(0, 0, 0, 0.4) !important;
}

.article-beta-card .waitlist-input-wrapper:focus-within {
  border-color: var(--brand-primary, #B4D94E) !important;
  box-shadow: 0 0 0 3px rgba(180, 217, 78, 0.3), 0 12px 28px rgba(0, 0, 0, 0.5) !important;
}

.article-beta-card .waitlist-input-icon {
  color: #94a3b8 !important;
}

.article-beta-card .waitlist-email-input {
  color: #ffffff !important;
}

.article-beta-card .waitlist-email-input::placeholder {
  color: #94a3b8 !important;
}

/* 2. Sidebar Compact Beta Widget */
.sidebar-beta-widget {
  background: var(--bg-card, #ffffff);
  border: 1px solid var(--border-default, #e5e5e5);
  border-radius: var(--radius-md, 14px);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.sidebar-beta-desc {
  font-size: 13px;
  color: var(--text-body, #555555);
  line-height: 1.5;
  margin-bottom: 14px;
}

.sidebar-beta-input-wrapper {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sidebar-beta-input {
  width: 100%;
  height: 38px;
  padding: 0 14px;
  border: 1px solid var(--border-strong, #d4d4d4);
  border-radius: var(--radius-pill);
  font-family: var(--font-sans);
  font-size: 13.5px;
  background: #ffffff;
  color: var(--text-main, #111111);
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.sidebar-beta-input:focus {
  border-color: var(--text-main, #111111);
  box-shadow: 0 0 0 3px rgba(17, 17, 17, 0.08);
}

.sidebar-beta-input.waitlist-highlight-subtle {
  border-color: var(--text-main, #111111) !important;
  animation: sidebarSubtlePulse 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes sidebarSubtlePulse {
  0% {
    box-shadow: 0 0 0 0 rgba(17, 17, 17, 0);
  }
  35% {
    box-shadow: 0 0 0 3px rgba(17, 17, 17, 0.12), 0 2px 8px rgba(0, 0, 0, 0.05);
  }
  100% {
    box-shadow: 0 0 0 3px rgba(17, 17, 17, 0.08), 0 1px 3px rgba(0, 0, 0, 0.03);
  }
}

.sidebar-beta-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 100%;
  height: 40px;
  border-radius: var(--radius-pill);
  background: linear-gradient(180deg, #c8ed58 0%, #B4D94E 100%);
  color: #0c1404;
  border: 1px solid rgba(0, 0, 0, 0.12);
  font-family: var(--font-sans);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  outline: none;
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55),
              inset 0 -2px 0 rgba(0, 0, 0, 0.14),
              0 2px 8px -2px rgba(180, 217, 78, 0.45);
  transform: translateZ(0);
  transition: all var(--transition-fast);
}

.sidebar-beta-btn:hover {
  background: linear-gradient(180deg, #d3f36a 0%, #bef046 100%);
  color: #0c1404;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7),
              inset 0 -2px 0 rgba(0, 0, 0, 0.18),
              0 6px 18px -2px rgba(180, 217, 78, 0.65);
  transform: translateY(-1px);
}

.sidebar-beta-btn:active {
  background: #a6ce3e;
  transform: translateY(1px) scale(0.985);
}

.sidebar-beta-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

@media (max-width: 600px) {
  .article-beta-card {
    padding: 24px 18px;
  }
  .article-beta-title {
    font-size: 18px;
  }
}

/* Flowchart Mobile Sizing */
@media (max-width: 768px) {
  .diagram-wrap {
    padding: 18px 12px !important;
    margin: 24px 0 !important;
  }
  .diagram-header {
    margin-bottom: 14px !important;
    padding-bottom: 8px !important;
  }
  .diagram-title {
    font-size: 11px !important;
    letter-spacing: 0.03em !important;
    line-height: 1.4 !important;
  }
}

@media (max-width: 420px) {
  .diagram-wrap {
    padding: 12px 6px !important;
    margin: 18px 0 !important;
    border-radius: var(--radius-md) !important;
  }
  .diagram-title {
    font-size: 10px !important;
  }
}
