/* ==========================================================================
   Child Pathshala Blog Stylesheet - Website Theme Colors & Layout
   Theme Colors: Teal (#10aeb2), Navy (#0b2b4c), Orange/Coral (#ff7f50 -> #ff4162), Sky (#eaf7f8), Border (#e2eaf0)
   ========================================================================== */

:root {
  --theme-teal: #10aeb2;
  --theme-teal-deep: #00878a;
  --theme-navy: #0b2b4c;
  --theme-ink: #10243e;
  --theme-slate: #334155;
  --theme-muted: #64748b;
  --theme-orange: #ff7f50;
  --theme-coral: #ff4162;
  --theme-sky: #eaf7f8;
  --theme-border: #e2eaf0;
  --theme-bg-light: #f8fcfe;
  --theme-radius: 16px;
  --theme-shadow: 0 8px 24px rgba(11, 43, 76, 0.06);
}

/* --- Reading Progress Bar --- */
.blog-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3.5px;
  width: 0%;
  background: linear-gradient(90deg, var(--theme-teal), var(--theme-orange), var(--theme-coral));
  z-index: 99999;
  transition: width 0.08s linear;
  box-shadow: 0 1px 6px rgba(16, 174, 178, 0.4);
}

/* --- Container Alignment --- */
.wrap.blog-wrap {
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* --- Listing & Hero Section --- */
.blog-hero {
  text-align: center;
  padding: 36px 18px 20px;
}
.blog-hero h1 {
  font-family: 'Fredoka', 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  color: var(--theme-navy);
  margin: 0.2em 0 0.3em;
}
.blog-hero .lede {
  max-width: 60ch;
  margin: 0 auto 20px;
  font-size: 1.1rem;
  color: var(--theme-muted);
}
.blog-search {
  display: flex;
  gap: 8px;
  max-width: 520px;
  margin: 0 auto;
}
.blog-search input {
  flex: 1;
  min-height: 46px;
  border: 2px solid var(--theme-border);
  border-radius: 999px;
  padding: 10px 18px;
  font: inherit;
  background: #fff;
  outline: none;
}
.blog-search input:focus {
  border-color: var(--theme-teal);
  box-shadow: 0 0 0 3px rgba(16, 174, 178, 0.18);
}
.blog-search button {
  min-height: 46px;
  border: 0;
  border-radius: 999px;
  padding: 10px 24px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, var(--theme-orange), var(--theme-coral));
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(255, 65, 98, 0.25);
}

.blog-sec {
  padding: 20px 0;
}
.blog-sec-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.blog-sec-head h2 {
  font-family: 'Fredoka', 'Plus Jakarta Sans', sans-serif;
  color: var(--theme-navy);
  font-size: 1.5rem;
  margin: 0;
}
.blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 640px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
  .blog-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Badges */
.card-badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 6px;
}
.badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--theme-sky);
  color: var(--theme-teal-deep);
  text-decoration: none;
  line-height: 1.25;
}
.badge.blue {
  background: #e0f2fe;
  color: #0369a1;
}
.badge.orange {
  background: #ffedd5;
  color: #c2410c;
}

.blog-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--theme-border);
  border-radius: var(--theme-radius);
  overflow: hidden;
  box-shadow: var(--theme-shadow);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.blog-card:hover {
  transform: translateY(-4px);
  border-color: var(--theme-teal);
  box-shadow: 0 12px 30px rgba(11, 43, 76, 0.12);
}
.blog-media {
  display: block;
  aspect-ratio: 16/9;
  background: var(--theme-sky);
  overflow: hidden;
}
.blog-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.blog-ph {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-size: 3rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, var(--theme-teal), var(--theme-navy));
}
.blog-card .card-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px;
  flex: 1;
}
.blog-card h3 {
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.35;
  font-family: 'Fredoka', 'Plus Jakarta Sans', sans-serif;
}
.blog-card h3 a {
  color: var(--theme-navy);
  text-decoration: none;
}
.blog-card h3 a:hover {
  color: var(--theme-orange);
}
.blog-card .meta {
  margin: 0;
  color: var(--theme-muted);
  font-size: 0.88rem;
  line-height: 1.5;
}
.blog-card .meta a {
  color: var(--theme-teal-deep);
  font-weight: 600;
  text-decoration: none;
}
.blog-card .meta a:hover {
  text-decoration: underline;
}
.blog-cats {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 12px 0;
}
.blog-empty {
  text-align: center;
  padding: 40px 18px;
}

/* --- Article Layout & Header --- */
.blog-article {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 16px 0 54px;
  box-sizing: border-box;
}

.blog-crumbs {
  font-size: 0.88rem;
  color: var(--theme-muted);
  padding: 10px 0 12px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
}
.blog-crumbs a {
  color: var(--theme-muted);
  text-decoration: none;
  transition: color 0.15s;
}
.blog-crumbs a:hover {
  color: var(--theme-teal);
}

.blog-article-header-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 6px 0 12px;
}
.badge-cat {
  background: var(--theme-sky);
  color: var(--theme-teal-deep);
  font-weight: 800;
  text-decoration: none;
  font-size: 0.8rem;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid rgba(16, 174, 178, 0.25);
  transition: background 0.15s, color 0.15s;
}
.badge-cat:hover {
  background: var(--theme-teal);
  color: #fff;
}
.badge-time {
  background: #f1f5f9;
  color: #475569;
  font-size: 0.8rem;
  padding: 4px 12px;
  border-radius: 999px;
  font-weight: 700;
}
.badge-curriculum {
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
  font-size: 0.78rem;
  padding: 4px 12px;
  border-radius: 999px;
  font-weight: 700;
}

.blog-article h1 {
  font-family: 'Fredoka', 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: clamp(2rem, 3.8vw, 2.75rem);
  font-weight: 800;
  line-height: 1.22;
  color: var(--theme-navy);
  margin: 0.25em 0 0.35em;
  letter-spacing: -0.015em;
}
.blog-article .lede {
  font-size: 1.18rem;
  line-height: 1.7;
  color: #475569;
  margin: 0 0 20px;
}

/* --- Redesigned Byline --- */
.blog-byline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding: 14px 0;
  margin: 10px 0 16px;
  border-top: 1.5px solid var(--theme-border);
  border-bottom: 1.5px solid var(--theme-border);
}
.byline-author-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}
.byline-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--theme-teal);
  box-shadow: 0 2px 8px rgba(16, 174, 178, 0.2);
  flex-shrink: 0;
}
.byline-name {
  display: block;
  font-size: 0.95rem;
  color: var(--theme-navy);
}
.byline-name a {
  color: var(--theme-navy);
  text-decoration: none;
  font-weight: 800;
}
.byline-name a:hover {
  color: var(--theme-teal);
}
.byline-role {
  display: block;
  font-size: 0.8rem;
  color: var(--theme-teal-deep);
  font-weight: 600;
}
.byline-dates {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--theme-muted);
}

/* --- Reader Perk Strip --- */
.blog-reader-perk {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  border: 1.5px solid #fde68a;
  border-radius: 12px;
  padding: 10px 16px;
  margin: 0 0 22px;
  font-size: 0.92rem;
  color: #92400e;
}
.reader-perk-badge {
  font-weight: 800;
  background: #f59e0b;
  color: #fff;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 0.76rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.reader-perk-text {
  flex: 1;
  min-width: 180px;
}
.reader-perk-link {
  font-weight: 700;
  color: #b45309;
  text-decoration: underline;
  text-underline-offset: 2px;
  margin-left: auto;
}
.blog-reader-perk .blog-code {
  background: #ffffff;
  color: #b45309;
  border: 1.5px dashed #f59e0b;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-weight: 800;
  font-size: 0.84rem;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.blog-reader-perk .blog-code:hover {
  background: #fffbeb;
  border-color: #d97706;
  transform: scale(1.02);
}
.blog-reader-perk .blog-code small {
  font-size: 0.72rem;
  background: #fef3c7;
  color: #92400e;
  padding: 1px 6px;
  border-radius: 4px;
  text-transform: uppercase;
  font-weight: 700;
}
@media (max-width: 640px) {
  .blog-reader-perk {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 12px 14px;
  }
  .reader-perk-link {
    margin-left: 0;
  }
  .blog-article h1 {
    font-size: 1.85rem;
    line-height: 1.25;
    word-break: break-word;
    overflow-wrap: break-word;
  }
}

.blog-hero-img {
  margin: 0 0 32px;
  border-radius: var(--theme-radius);
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(11, 43, 76, 0.08);
  border: 1px solid var(--theme-border);
}
.blog-hero-img img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16/9;
  object-fit: cover;
}
.blog-hero-img figcaption {
  font-size: 0.85rem;
  color: var(--theme-muted);
  padding: 10px 14px;
  text-align: center;
  font-style: italic;
  background: #fff;
  border-top: 1px solid var(--theme-border);
}

/* --- Robust 2-Column Layout Grid (No Overflow) --- */
.blog-layout-grid {
  display: grid;
  grid-template-columns: 100%;
  gap: 32px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
@media (min-width: 1024px) {
  .blog-layout-grid {
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 36px;
    align-items: start;
  }
}
@media (min-width: 1280px) {
  .blog-layout-grid {
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 44px;
  }
}
.blog-main-content {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

/* --- Clean Sidebar (Normal Flow, Fully Visible) --- */
.blog-sidebar {
  display: none;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}
@media (min-width: 1024px) {
  .blog-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-self: start;
  }
}

.sidebar-block {
  background: #fff;
  border: 1.5px solid var(--theme-border);
  border-radius: 18px;
  padding: 20px 22px;
  box-shadow: 0 4px 18px rgba(11, 43, 76, 0.04);
  box-sizing: border-box;
  overflow: hidden;
  max-width: 100%;
}
.sidebar-block-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--theme-sky);
}
.sidebar-block-head strong {
  font-family: 'Fredoka', 'Plus Jakarta Sans', sans-serif;
  font-size: 1.1rem;
  color: var(--theme-navy);
}

/* Sidebar Table of Contents */
.sidebar-toc-nav {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.sidebar-toc-nav li {
  margin: 0;
}
.sidebar-toc-nav a {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--theme-slate);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 10px;
  line-height: 1.4;
  transition: all 0.15s ease;
}
.sidebar-toc-nav a:hover {
  background: var(--theme-sky);
  color: var(--theme-teal);
  transform: translateX(2px);
}
.sidebar-toc-nav a.active {
  background: var(--theme-sky);
  color: var(--theme-teal);
  font-weight: 700;
}
.sidebar-toc-nav .toc-arrow {
  color: var(--theme-teal);
  font-weight: 800;
  font-size: 1rem;
  flex-shrink: 0;
}

/* Sidebar Matching Worksheets (Anti-Overflow with fixed 52px thumb) */
.sidebar-matched-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.sidebar-matched-list li {
  margin: 0;
}
.sidebar-matched-list li a {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--theme-bg-light);
  border: 1px solid var(--theme-border);
  transition: all 0.15s ease;
  box-sizing: border-box;
  max-width: 100%;
  overflow: hidden;
}
.sidebar-matched-list li a:hover {
  background: #fff;
  border-color: var(--theme-teal);
  transform: translateX(3px);
  box-shadow: 0 4px 14px rgba(16, 174, 178, 0.12);
}
.mb-mini-thumb {
  width: 52px;
  height: 52px;
  min-width: 52px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1.5px solid var(--theme-border);
  background: var(--theme-sky);
  display: block;
}
.mb-mini-icon {
  width: 52px;
  height: 52px;
  min-width: 52px;
  border-radius: 8px;
  background: var(--theme-sky);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
  border: 1.5px solid #ccfbf1;
}
.mb-mini-text {
  min-width: 0;
  flex: 1;
  overflow: hidden;
}
.sidebar-matched-list strong {
  display: block;
  font-size: 0.88rem;
  color: var(--theme-navy);
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.sidebar-matched-list small {
  display: block;
  font-size: 0.78rem;
  color: var(--theme-muted);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Sidebar Interactive Tools */
.sidebar-tools-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.sidebar-tools-list li {
  margin: 0;
}
.sidebar-tools-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-decoration: none;
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--theme-bg-light);
  border: 1px solid var(--theme-border);
  color: var(--theme-navy);
  font-size: 0.92rem;
  transition: all 0.15s ease;
  box-sizing: border-box;
}
.sidebar-tools-list a:hover {
  background: #fff;
  border-color: var(--theme-teal);
  color: var(--theme-teal);
  transform: translateX(3px);
  box-shadow: 0 4px 14px rgba(16, 174, 178, 0.12);
}
.sidebar-tools-list a > span {
  display: flex;
  align-items: center;
  gap: 10px;
}
.sidebar-tools-list a strong {
  font-size: 0.92rem;
  font-weight: 600;
}
.tool-arrow {
  color: var(--theme-muted);
  font-weight: 800;
  font-size: 1.1rem;
  transition: transform 0.15s ease;
}
.sidebar-tools-list a:hover .tool-arrow {
  transform: translateX(3px);
  color: var(--theme-teal);
}

/* Sidebar Free Practice Promo Block */
.sidebar-promo-block {
  background: linear-gradient(135deg, #0b2b4c 0%, #0d9488 100%);
  color: #fff;
  border: none;
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 8px 24px rgba(11, 43, 76, 0.15);
  position: relative;
  overflow: hidden;
}
.sidebar-promo-block::before {
  content: '';
  position: absolute;
  top: -30px;
  right: -30px;
  width: 100px;
  height: 100px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  pointer-events: none;
}
.sidebar-promo-tag {
  display: inline-block;
  background: linear-gradient(135deg, var(--theme-orange), var(--theme-coral));
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.sidebar-promo-block h4 {
  margin: 0 0 8px;
  font-family: 'Fredoka', 'Plus Jakarta Sans', sans-serif;
  font-size: 1.25rem;
  color: #fff;
  line-height: 1.3;
}
.sidebar-promo-block p {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.9);
  margin: 0 0 16px;
  line-height: 1.55;
}
.sidebar-promo-block .btn {
  width: 100%;
  text-align: center;
  justify-content: center;
  background: #fff;
  color: var(--theme-navy);
  font-weight: 800;
  border: none;
  border-radius: 10px;
  padding: 11px 16px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
  transition: all 0.15s ease;
}
.sidebar-promo-block .btn:hover {
  background: #f8fafc;
  color: var(--theme-teal-deep);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
}

/* --- Matched Printable Worksheets Section --- */
.blog-matched-section {
  margin: 3.5rem 0;
  padding: 28px;
  background: linear-gradient(135deg, #f0fdfa 0%, #ffffff 100%);
  border: 2px solid #ccfbf1;
  border-radius: var(--theme-radius);
  box-shadow: var(--theme-shadow);
  box-sizing: border-box;
}
.blog-matched-section .blog-sec-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}
.matched-bundles-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 640px) {
  .matched-bundles-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.matched-bundle-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1.5px solid var(--theme-border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(11, 43, 76, 0.04);
  transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s;
}
.matched-bundle-card:hover {
  transform: translateY(-4px);
  border-color: var(--theme-teal);
  box-shadow: 0 10px 26px rgba(16, 174, 178, 0.15);
}
.mb-thumb {
  display: block;
  aspect-ratio: 4/3;
  background: var(--theme-sky);
  overflow: hidden;
}
.mb-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.mb-thumb-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  background: linear-gradient(135deg, #e0f2fe, #ccfbf1);
  color: #0d9488;
  font-size: 2rem;
  gap: 4px;
}
.mb-thumb-placeholder small {
  font-size: 0.75rem;
  font-weight: 700;
  color: #0369a1;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.mb-body {
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.mb-badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.badge-grade {
  background: #ffedd5;
  color: #c2410c;
  font-weight: 700;
  font-size: 0.75rem;
  padding: 3px 9px;
  border-radius: 999px;
}
.mb-body h4 {
  margin: 4px 0 0;
  font-size: 1.05rem;
  line-height: 1.35;
  font-family: 'Fredoka', 'Plus Jakarta Sans', sans-serif;
}
.mb-body h4 a {
  color: var(--theme-navy);
  text-decoration: none;
}
.mb-body h4 a:hover {
  color: var(--theme-teal);
}
.mb-count {
  margin: 0;
  font-size: 0.82rem;
  color: var(--theme-muted);
}
.mb-body .btn {
  margin-top: auto;
  align-self: flex-start;
  border-radius: 8px;
}

/* In-Article Interlinks */
.blog-interlink {
  color: var(--theme-teal) !important;
  text-decoration: underline !important;
  text-decoration-thickness: 1.5px !important;
  text-underline-offset: 3px !important;
  font-weight: 600 !important;
  transition: color 0.15s, background 0.15s;
  padding: 0 2px;
  border-radius: 4px;
}
.blog-interlink:hover {
  color: var(--theme-orange) !important;
  background: var(--theme-sky);
  text-decoration: none !important;
}

/* --- Inline/Top Mobile Table of Contents --- */
.blog-toc {
  background: linear-gradient(135deg, #f0fdfa 0%, #ffffff 50%, #fff7ed 100%);
  border: 2px solid #ccfbf1;
  border-radius: var(--theme-radius);
  padding: 22px 24px;
  margin: 1.6rem 0 2.4rem;
  box-shadow: 0 6px 20px rgba(16, 174, 178, 0.06);
}
@media (min-width: 1024px) {
  .blog-toc-top { display: none; }
}
.blog-toc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(16, 174, 178, 0.15);
}
.blog-toc-head strong {
  font-family: 'Fredoka', 'Plus Jakarta Sans', sans-serif;
  font-size: 1.18rem;
  color: var(--theme-navy);
}
.toc-badge {
  display: inline-block;
  background: var(--theme-teal);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 999px;
}
.blog-toc-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}
@media (min-width: 600px) {
  .blog-toc-list {
    grid-template-columns: 1fr 1fr;
    gap: 8px 18px;
  }
}
.blog-toc-list a {
  display: flex;
  align-items: baseline;
  gap: 6px;
  color: var(--theme-navy);
  text-decoration: none;
  font-size: 0.94rem;
  font-weight: 600;
  line-height: 1.4;
  padding: 6px 8px;
  border-radius: 8px;
  transition: background 0.15s, color 0.15s;
}
.blog-toc-list a:hover {
  background: var(--theme-sky);
  color: var(--theme-teal);
}
.toc-bullet {
  color: var(--theme-teal);
  font-weight: 800;
  font-size: 1rem;
  flex-shrink: 0;
}

/* ==========================================================================
   ARTICLE PROSE TYPOGRAPHY & SPACING
   ========================================================================== */

.blog-body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  font-size: 1.125rem;
  line-height: 1.85;
  color: var(--theme-slate);
  overflow-wrap: break-word;
  word-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
.blog-body p {
  margin: 0 0 1.5rem;
  color: var(--theme-slate);
}
.blog-body p strong,
.blog-body li strong {
  color: var(--theme-navy);
  font-weight: 700;
}
.blog-body em {
  color: #475569;
  font-style: italic;
}

/* Section Headings */
.blog-body h2 {
  font-family: 'Fredoka', 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(1.45rem, 3vw, 1.75rem);
  font-weight: 700;
  color: var(--theme-navy);
  margin: 2.8rem 0 1rem;
  line-height: 1.3;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--theme-sky);
  scroll-margin-top: 100px;
}
.blog-body h3 {
  font-family: 'Fredoka', 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(1.2rem, 2.5vw, 1.38rem);
  font-weight: 600;
  color: var(--theme-navy);
  margin: 2rem 0 0.8rem;
  line-height: 1.35;
  scroll-margin-top: 100px;
}
.blog-body h3.faq-inline-q {
  background: var(--theme-bg-light);
  border: 2px solid var(--theme-teal);
  border-radius: 12px;
  padding: 12px 18px;
  margin: 2.4rem 0 0.8rem;
}
.blog-body h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--theme-navy);
  margin: 1.6rem 0 0.6rem;
}

/* Lists */
.blog-body ul,
.blog-body ol,
.blog-list {
  margin: 0 0 1.7rem;
  padding-left: 1.6rem;
}
.blog-body ul li,
.blog-body ol li,
.blog-list li {
  margin: 0.55rem 0;
  line-height: 1.75;
}
.blog-body ul li::marker,
.blog-list li::marker {
  color: var(--theme-teal);
}

.blog-steps-list {
  margin: 0 0 1.7rem;
  padding-left: 1.6rem;
}
.blog-steps-list li {
  margin: 0.65rem 0;
  line-height: 1.75;
}
.blog-steps-list li::marker {
  color: var(--theme-orange);
  font-weight: 700;
}

/* Checklists */
.blog-checklist {
  list-style: none;
  padding-left: 0;
  margin: 0 0 1.8rem;
}
.chk-item {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 0.65rem 0;
  line-height: 1.7;
}
.chk-box {
  font-size: 1.1rem;
  color: var(--theme-teal);
  flex-shrink: 0;
}
.chk-box.checked {
  color: var(--theme-teal);
  font-weight: 800;
}

/* Images & Figures inside Blog Body */
.blog-body img,
.blog-body figure img {
  max-width: 100%;
  height: auto;
  border-radius: 14px;
  margin: 1.5rem 0;
  box-shadow: 0 6px 20px rgba(11, 43, 76, 0.07);
  display: block;
}
.blog-body figure {
  margin: 1.8rem 0;
  text-align: center;
}
.blog-body figure figcaption {
  font-size: 0.88rem;
  color: var(--theme-muted);
  margin-top: 6px;
  font-style: italic;
}

/* Summary Box */
.blog-summary-box {
  background: var(--theme-bg-light);
  border: 2px solid var(--theme-teal);
  border-radius: var(--theme-radius);
  padding: 20px 24px;
  margin: 2rem 0;
  box-shadow: 0 4px 16px rgba(16, 174, 178, 0.06);
}
.blog-summary-box h4 {
  margin: 0 0 12px;
  font-family: 'Fredoka', 'Plus Jakarta Sans', sans-serif;
  font-size: 1.15rem;
  color: var(--theme-navy);
}
.blog-summary-box p {
  margin: 0 0 0.75rem;
  font-size: 1.02rem;
  line-height: 1.7;
}
.blog-summary-box p:last-child {
  margin-bottom: 0;
}
.box-divider {
  border: 0;
  border-top: 1px dashed var(--theme-border);
  margin: 14px 0;
}

/* Blockquotes & Callouts */
.blog-body blockquote,
.blog-callout {
  background: var(--theme-bg-light);
  border: 2px solid var(--theme-teal);
  border-radius: var(--theme-radius);
  padding: 18px 22px;
  margin: 2rem 0;
  font-size: 1.05rem;
  line-height: 1.75;
}
.blog-body blockquote p:last-child,
.blog-callout p:last-child {
  margin-bottom: 0;
}
.blog-callout-tip {
  border: 2px solid #f59e0b;
  background: #fffbeb;
  color: #78350f;
}
.blog-callout-activity {
  border: 2px solid #10b981;
  background: #f0fdf4;
  color: #064e3b;
}
.blog-callout-warning {
  border: 2px solid #ef4444;
  background: #fef2f2;
  color: #7f1d1d;
}
.blog-callout-note {
  border: 2px solid var(--theme-teal);
  background: #f0fdfa;
  color: #134e4a;
}
.blog-cta {
  border: 2px solid var(--theme-orange);
  background: #fff7ee;
  border-radius: var(--theme-radius);
  padding: 20px 24px;
  margin: 2.2rem 0;
}
.blog-cta .btn { margin-top: 8px; }

/* Tables */
.kid-table-wrap,
.blog-body table {
  width: 100%;
  overflow-x: auto;
  margin: 2.2rem 0;
  border: 1px solid var(--theme-border);
  border-radius: var(--theme-radius);
  -webkit-overflow-scrolling: touch;
  box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}
.kid-table-wrap table,
.blog-body table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.96rem;
  margin: 0;
  border: 1px solid var(--theme-border);
}
.kid-table-wrap th,
.blog-body th {
  background: var(--theme-sky);
  color: var(--theme-navy);
  font-weight: 700;
  padding: 13px 16px;
  border: 1px solid var(--theme-border);
  text-align: left;
}
.kid-table-wrap td,
.blog-body td {
  padding: 12px 16px;
  border: 1px solid var(--theme-border);
  color: var(--theme-slate);
  line-height: 1.6;
}
.kid-table-wrap tr:nth-child(even) td,
.blog-body tr:nth-child(even) td {
  background: #fafafa;
}

/* Pre & Code Blocks */
.blog-body code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  background: #f1f5f9;
  color: var(--theme-navy);
  padding: 0.18em 0.4em;
  border-radius: 4px;
  font-size: 0.88em;
}
.blog-body pre {
  background: #0f172a;
  color: #f8fafc;
  padding: 20px 24px;
  border-radius: 12px;
  overflow-x: auto;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 2rem 0;
}
.blog-body pre code {
  background: transparent !important;
  color: inherit !important;
  padding: 0 !important;
  border: none !important;
}

.kid-divider,
.blog-body hr {
  border: 0;
  border-top: 2px dashed var(--theme-border);
  margin: 2.6rem 0;
}
.blog-body a {
  color: var(--theme-teal);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 600;
}
.blog-body a:hover {
  color: var(--theme-orange);
}

/* ==========================================================================
   FREQUENTLY ASKED QUESTIONS (INTERACTIVE ACCORDION)
   ========================================================================== */

.blog-faq {
  margin: 3.5rem 0;
  padding: 32px;
  background: linear-gradient(135deg, #f8fcfe 0%, #f0fdfa 100%);
  border: 2px solid #ccfbf1;
  border-radius: 22px;
  box-shadow: 0 6px 24px rgba(16, 174, 178, 0.08);
  box-sizing: border-box;
}
.blog-faq-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
  padding-bottom: 18px;
  border-bottom: 2px solid #e0f2f1;
}
.faq-head-left {
  display: flex;
  align-items: center;
  gap: 16px;
}
.faq-icon-badge {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: #fff;
  font-size: 1.8rem;
  box-shadow: 0 4px 16px rgba(16, 174, 178, 0.18);
  flex-shrink: 0;
}
.blog-faq-head h2 {
  font-family: 'Fredoka', 'Plus Jakarta Sans', sans-serif;
  font-size: 1.65rem;
  margin: 0;
  color: var(--theme-navy);
  letter-spacing: -0.01em;
}
.faq-sub {
  margin: 4px 0 0;
  font-size: 0.94rem;
  color: var(--theme-muted);
}
.faq-count-badge {
  display: inline-flex;
  align-items: center;
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #bbf7d0;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 5px 14px;
  border-radius: 999px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.faq-accordion-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.faq-accordion-item {
  background: #ffffff;
  border: 1.5px solid #e2eaf0;
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}
.faq-accordion-item:hover {
  border-color: var(--theme-teal);
  box-shadow: 0 6px 18px rgba(16, 174, 178, 0.08);
}
.faq-accordion-item[open] {
  border-color: var(--theme-teal);
  background: #fafefe;
  box-shadow: 0 6px 22px rgba(16, 174, 178, 0.1);
}
.faq-accordion-summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  cursor: pointer;
  user-select: none;
}
.faq-accordion-summary::-webkit-details-marker {
  display: none;
}
.faq-accordion-summary::marker {
  display: none;
}
.faq-q-left {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
}
.faq-q-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--theme-sky);
  color: var(--theme-teal-deep);
  font-weight: 800;
  font-size: 0.85rem;
  flex-shrink: 0;
}
.faq-accordion-item[open] .faq-q-badge {
  background: var(--theme-teal);
  color: #fff;
}
.faq-q-text {
  font-family: 'Fredoka', 'Plus Jakarta Sans', sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--theme-navy);
  line-height: 1.38;
}
.faq-chevron {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--theme-bg-light);
  color: var(--theme-muted);
  transition: transform 0.25s ease, background 0.2s, color 0.2s;
  flex-shrink: 0;
}
.faq-accordion-summary:hover .faq-chevron {
  background: var(--theme-sky);
  color: var(--theme-teal);
}
.faq-accordion-item[open] .faq-chevron {
  transform: rotate(180deg);
  background: var(--theme-sky);
  color: var(--theme-teal);
}
.faq-accordion-content {
  padding: 0 22px 20px 68px;
  animation: faqSlideDown 0.2s ease-out;
}
@keyframes faqSlideDown {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}
.faq-a-body p {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.75;
  color: #475569;
}
.faq-verified-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  padding: 4px 10px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
  color: #166534;
  font-size: 0.78rem;
  font-weight: 700;
}
@media (max-width: 640px) {
  .faq-accordion-content {
    padding: 0 18px 18px 18px;
  }
  .blog-faq {
    padding: 20px 16px;
  }
  .faq-head-left {
    gap: 12px;
  }
  .faq-icon-badge {
    width: 44px;
    height: 44px;
    font-size: 1.5rem;
  }
}

/* --- Author & Social Share --- */
.blog-share {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin: 32px 0;
  padding: 16px 20px;
  background: var(--theme-bg-light);
  border: 1.5px solid var(--theme-border);
  border-radius: 14px;
}
.blog-share .btn { margin: 0; }

/* --- High-Trust E-E-A-T Author Card --- */
.blog-author-card {
  background: var(--theme-card-bg, #ffffff);
  border: 1.5px solid var(--theme-border, #e2e8f0);
  border-radius: 20px;
  padding: 28px;
  margin: 36px 0;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.04);
}
.blog-author-header {
  display: flex;
  gap: 22px;
  align-items: flex-start;
}
.blog-author-avatar-wrap {
  position: relative;
  flex-shrink: 0;
}
.blog-author-avatar-wrap img {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  object-fit: cover;
  border: 2.5px solid var(--theme-teal);
  box-shadow: 0 4px 14px rgba(16, 174, 178, 0.25);
  display: block;
}
.blog-author-verified {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #10b981;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  border: 2px solid #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}
.blog-author-info {
  flex: 1;
  min-width: 0;
}
.blog-author-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.blog-author-kicker {
  display: block;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--theme-orange, #ff6d00);
}
.blog-author-name {
  margin: 2px 0 4px;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--theme-navy, #0b2b4c);
}
.blog-author-name a {
  color: inherit;
  text-decoration: none;
}
.blog-author-name a:hover {
  color: var(--theme-teal);
}
.blog-author-role {
  margin: 0 0 8px;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--theme-teal, #0d7d81);
}
.blog-author-btn {
  font-size: 0.84rem;
  padding: 7px 16px;
  border-radius: 8px;
}
.blog-author-bio {
  margin: 8px 0 14px;
  font-size: 0.94rem;
  line-height: 1.62;
  color: #475569;
}
.blog-author-meta-bar {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
  padding: 10px 14px;
  background: var(--theme-bg-light, #f8fafc);
  border-radius: 12px;
  border: 1px solid var(--theme-border, #e2e8f0);
  font-size: 0.84rem;
}
.blog-author-meta-bar a {
  color: var(--theme-teal);
  font-weight: 700;
  text-decoration: none;
}
.blog-author-meta-bar a:hover {
  text-decoration: underline;
}
.blog-ai-disclosure-badge {
  margin-top: 14px;
  padding: 12px 16px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 12px;
  font-size: 0.84rem;
  color: #166534;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.55;
}
.blog-ai-disclosure-badge .disclosure-icon {
  font-size: 1.15rem;
  line-height: 1;
  flex-shrink: 0;
}
.blog-ai-disclosure-badge a {
  color: #15803d;
  text-decoration: underline;
  margin-left: 4px;
  font-weight: 700;
}
@media (max-width: 640px) {
  .blog-author-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .blog-author-title-row {
    justify-content: center;
    text-align: center;
  }
  .blog-author-card {
    padding: 22px 18px;
  }
}

/* --- Store Picks & Price Tags --- */
.blog-mini h3 { font-size: 1rem; }
.blog-price { margin: 0; font-size: 1.05rem; }
.blog-price-now { font-weight: 800; color: var(--theme-navy); font-size: 1.15rem; }
.blog-price s { margin: 0 4px; }
.blog-coupon { background: #fff; border: 1px dashed var(--theme-orange); border-radius: var(--theme-radius); padding: 18px; margin: 8px 0 6px; }
.blog-ticket { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 8px 0; border-bottom: 1px solid var(--theme-border); }
.blog-ticket:last-child { border-bottom: 0; }
.blog-ticket strong { font-size: 1.02rem; }
.blog-coupon-sm { padding: 14px; }

.blog-offerbar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  background: var(--theme-navy);
  color: #fff;
  border-radius: 12px;
  padding: 10px 16px;
  margin: 14px 0 16px;
  font-size: 0.9rem;
  box-sizing: border-box;
  max-width: 100%;
}
.blog-offerbar-content {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  flex: 1;
  min-width: 0;
}
.blog-offerbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}
@media (max-width: 640px) {
  .blog-offerbar {
    padding: 12px;
    gap: 8px;
  }
  .blog-offerbar-actions {
    margin-left: 0;
    width: 100%;
    justify-content: space-between;
  }
}
.blog-offerbar .btn { margin-left: 0; }
.blog-code {
  font-family: monospace;
  font-weight: 700;
  background: rgba(255,255,255,.16);
  color: #fff;
  border: 1px dashed rgba(255,255,255,.6);
  border-radius: 6px;
  padding: 2px 8px;
  cursor: pointer;
}
.blog-offer-x {
  background: none;
  border: 0;
  color: #fff;
  opacity: .7;
  cursor: pointer;
  padding: 4px 8px;
}
.blog-reader-off {
  background: #fff7ee;
  border: 2px solid var(--theme-orange);
  border-radius: var(--theme-radius);
  padding: 12px 18px;
  margin: 0 0 16px;
  font-size: 0.94rem;
}

/* --- News & Work Sections --- */
.blog-news {
  background: var(--theme-bg-light);
  border: 1px solid var(--theme-border);
  border-radius: var(--theme-radius);
  padding: 28px 20px;
  text-align: center;
  margin: 28px 0;
}
.blog-news h2 { margin: 0 0 6px; font-family: 'Fredoka', 'Plus Jakarta Sans', sans-serif; color: var(--theme-navy); }
.blog-news form {
  display: flex;
  gap: 8px;
  max-width: 440px;
  margin: 14px auto 0;
  flex-wrap: wrap;
  justify-content: center;
}
.blog-news input[type=email] {
  flex: 1;
  min-width: 200px;
  min-height: 44px;
  border: 1px solid var(--theme-border);
  border-radius: 999px;
  padding: 10px 16px;
  font: inherit;
  outline: none;
}
.blog-work {
  text-align: center;
  background: var(--theme-navy);
  color: #fff;
  border-radius: var(--theme-radius);
  padding: 30px 22px;
  margin: 28px 0;
}
.blog-work h2 { margin: 0 0 8px; font-family: 'Fredoka', 'Plus Jakarta Sans', sans-serif; color: #fff; }
.blog-work p { opacity: .9; }
.blog-work .btn { margin-top: 10px; }

/* ==========================================================================
   INTERACTIVE SPECTRUM & STEP FLOW CARDS
   ========================================================================== */

.blog-spectrum-card {
  margin: 2.4rem 0;
  padding: 22px 24px;
  background: linear-gradient(135deg, #fdfefe 0%, #f8fafc 100%);
  border: 2px solid #e2e8f0;
  border-radius: 18px;
  box-shadow: 0 6px 20px rgba(11, 43, 76, 0.05);
}
.spectrum-header {
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid #e2e8f0;
}
.spectrum-header h4 {
  margin: 0;
  font-family: 'Fredoka', 'Plus Jakarta Sans', sans-serif;
  font-size: 1.18rem;
  color: var(--theme-navy);
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: -0.01em;
}
.spectrum-track {
  margin-bottom: 16px;
  padding: 16px 18px;
  border-radius: 14px;
  transition: transform 0.15s ease;
}
.spectrum-track:last-child {
  margin-bottom: 0;
}
.spectrum-track-bad {
  background: linear-gradient(135deg, #fff5f5 0%, #fff1f2 100%);
  border: 1.5px solid #fecdd3;
}
.spectrum-track-good {
  background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
  border: 1.5px solid #a7f3d0;
}
.spectrum-track-neutral {
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
}
.spectrum-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.spectrum-badge-bad {
  background: #ffe4e6;
  color: #be123c;
  border: 1px solid #fca5a5;
}
.spectrum-badge-good {
  background: #d1fae5;
  color: #047857;
  border: 1px solid #6ee7b7;
}
.spectrum-badge-neutral {
  background: #e2e8f0;
  color: var(--theme-navy);
  border: 1px solid #cbd5e1;
}
.step-nodes-flow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.step-pill {
  background: #ffffff;
  color: #1e293b;
  border: 1px solid #cbd5e1;
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 0.92rem;
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  line-height: 1.4;
}
.spectrum-track-good .step-pill-outcome {
  background: #059669;
  color: #ffffff;
  border-color: #059669;
  font-weight: 700;
}
.spectrum-track-bad .step-pill-outcome {
  background: #e11d48;
  color: #ffffff;
  border-color: #e11d48;
  font-weight: 700;
}
.step-arrow {
  color: #64748b;
  font-weight: 800;
  font-size: 1.1rem;
}
.spectrum-connector {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 10px 0;
}
.conn-arrow {
  font-size: 1.3rem;
  color: #0d9488;
  font-weight: 900;
}
.conn-label {
  background: #ccfbf1;
  color: #0f766e;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.spectrum-text {
  margin: 6px 0 0;
  font-size: 0.92rem;
  color: var(--theme-slate);
}

/* ==========================================================================
   MATH, EQUATIONS, PROTOCOLS & ASCII FORMATTING
   ========================================================================== */

.math-inline {
  font-family: 'JetBrains Mono', 'Fira Code', ui-monospace, Menlo, Consolas, monospace;
  font-size: 0.94em;
  background: #f1f5f9;
  color: #0f172a;
  padding: 0.18em 0.45em;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
  white-space: nowrap;
}

.blog-protocol-box {
  background: linear-gradient(135deg, #f8fafc 0%, #f0fdfa 100%);
  border: 2px solid var(--theme-teal);
  border-radius: var(--theme-radius);
  padding: 24px 28px;
  margin: 2.2rem 0;
  box-shadow: 0 6px 20px rgba(16, 174, 178, 0.08);
}

.blog-protocol-box h4 {
  font-family: 'Fredoka', 'Plus Jakarta Sans', sans-serif;
  font-size: 1.25rem;
  color: var(--theme-navy);
  margin: 0 0 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: -0.01em;
}

.protocol-problem {
  background: #fff;
  border: 1.5px solid var(--theme-teal);
  border-radius: 10px;
  padding: 10px 16px;
  margin-bottom: 16px;
  font-size: 1.05rem;
  color: var(--theme-navy);
  display: inline-block;
}

.protocol-step {
  margin: 14px 0 8px;
  background: #ffffff;
  border: 1.5px solid var(--theme-border);
  border-radius: 8px;
  padding: 10px 14px;
}

.protocol-step p {
  margin: 0;
  color: var(--theme-navy);
  font-size: 1.02rem;
}

.blog-protocol-box .blog-steps-list {
  list-style: none;
  padding-left: 0;
  margin: 0 0 1rem;
}

.blog-protocol-box .blog-steps-list li {
  background: #ffffff;
  border: 1.5px solid var(--theme-border);
  border-radius: 8px;
  padding: 10px 14px;
  margin: 8px 0;
}

.math-step-line {
  margin: 6px 0 8px 18px !important;
}

.math-step-line code {
  font-family: 'JetBrains Mono', 'Fira Code', ui-monospace, monospace;
  font-size: 0.96em;
  background: #ffffff;
  border: 1.5px solid var(--theme-teal);
  padding: 5px 14px;
  border-radius: 6px;
  display: inline-block;
  color: var(--theme-navy);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
}

.blog-ascii-wrap {
  margin: 2.2rem 0;
  border-radius: var(--theme-radius);
  overflow: hidden;
  border: 1.5px solid var(--theme-border);
  box-shadow: 0 4px 16px rgba(11, 43, 76, 0.05);
}

.blog-ascii-diagram {
  background: #0f172a;
  color: #f8fafc;
  padding: 22px 26px;
  margin: 0;
  overflow-x: auto;
  font-family: 'JetBrains Mono', 'Fira Code', ui-monospace, Menlo, Consolas, monospace;
  font-size: 0.88rem;
  line-height: 1.5;
}

.blog-ascii-diagram code {
  background: transparent !important;
  color: inherit !important;
  padding: 0 !important;
  border: none !important;
  font-family: inherit !important;
}

.blog-strand-matrix {
  background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 60%, #ecfdf5 100%);
  border: 2px solid #10b981;
  border-radius: var(--theme-radius);
}

.blog-strand-matrix h4 {
  color: #065f46;
}
