/* ===================================
   6. BLOG SECTION
   =================================== */
.blog {
  padding: var(--section-padding);
}

.blog-header {
  text-align: center;
  margin-bottom: 40px;
}

.blog-header .section-subtitle {
  margin: 0 auto;
}

/* ---- Blog Preview Grid (home page) ---- */
.blog-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}

.blog-preview-cta {
  text-align: center;
  margin-top: 8px;
}

/* ---- Blog full page top padding ---- */
.blog-page {
  padding-top: 120px;
}

/* ---- Category Navigation Bar ---- */
.blog-category-nav {
  display: flex;
  gap: 8px;
  margin-bottom: 32px;
  padding-bottom: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
}

.blog-category-nav::-webkit-scrollbar {
  display: none;
}

.blog-category-btn {
  flex-shrink: 0;
  padding: 8px 20px;
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-full);
  background: var(--color-white);
  color: var(--color-gray-600);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-base);
  white-space: nowrap;
}

.blog-category-btn:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.blog-category-btn.active {
  background: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
}

/* ---- Blog Main Layout ---- */
.blog-main {
  display: flex;
  gap: 32px;
  align-items: flex-start;
}

.blog-articles {
  flex: 2;
  min-width: 0;
}

.blog-sidebar {
  flex: 1;
  min-width: 0;
  position: sticky;
  top: 100px;
}

/* ---- Article Cards Grid ---- */
.blog-articles-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.blog-card {
  display: block;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-gray-200);
  color: inherit;
  text-decoration: none;
  min-height: 392px;
  transition: all var(--transition-base);
  cursor: pointer;
}

.blog-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.blog-card-image {
  width: 100%;
  overflow: hidden;
  background: var(--color-gray-100);
}

.blog-card-image img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 780 / 608;
}

.blog-card-body {
  padding: 20px;
}

/* Intentional text-only variant for articles that do not have a cover image. */
.blog-card--no-image {
  min-height: 252px;
  border-top: 4px solid var(--color-primary);
}

.blog-card--no-image .blog-card-body {
  display: flex;
  flex-direction: column;
  min-height: 248px;
}

.blog-card--no-image .blog-card-tags {
  margin-top: auto;
}

.blog-card--no-image .blog-card-title {
  -webkit-line-clamp: 3;
}

.blog-card--no-image .blog-card-excerpt {
  -webkit-line-clamp: 4;
}

.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

/* Same pill type as the homepage blog preview (.blog-preview-grid
   .blog-card-category in home.fixed.css): 12px/600 in 5px 12px of padding. */
.blog-card-category {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  color: #16734F;
  background: var(--color-primary-light);
  padding: 5px 12px;
  border-radius: var(--radius-full);
}

.blog-card-read-time {
  font-size: 0.75rem;
  color: var(--color-gray-400);
}

.blog-card-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-gray-900);
  margin-bottom: 8px;
  line-height: 1.4;
  /* Reserve exactly 2 lines so excerpt/tags start at the same y across cards. */
  min-height: 2.8em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card-excerpt {
  font-size: 0.8125rem;
  color: var(--color-gray-500);
  line-height: 1.6;
  margin-bottom: 14px;
  /* Reserve exactly 2 lines so the tag row aligns across cards. */
  min-height: 3.2em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* Held at the category pill's 12px so the two chip rows in one card match. */
.blog-card-tag-item {
  font-size: 0.75rem;
  color: var(--color-gray-500);
  background: var(--color-gray-100);
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

/* ---- Pagination ---- */
.blog-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 32px 0 8px;
  flex-wrap: wrap;
}

.blog-page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-md);
  background: var(--color-white);
  color: var(--color-gray-600);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.blog-page-btn:hover:not([disabled]):not(.active) {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: rgba(44, 182, 125, 0.06);
}

.blog-page-btn.active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-white);
  font-weight: 600;
}

.blog-page-btn[disabled] {
  opacity: 0.4;
  cursor: not-allowed;
}

.blog-page-btn svg {
  flex-shrink: 0;
}

.blog-page-ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 40px;
  color: var(--color-gray-400);
  font-size: 0.875rem;
  letter-spacing: 2px;
}

.blog-page-prev span,
.blog-page-next span {
  display: inline;
}

@media (max-width: 480px) {
  .blog-page-prev span,
  .blog-page-next span {
    display: none;
  }
  .blog-page-btn {
    min-width: 36px;
    height: 36px;
    padding: 0 8px;
    font-size: 0.8125rem;
  }
}

/* ---- Sidebar ---- */
.blog-sidebar-section {
  background: var(--color-white);
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 24px;
}

.blog-sidebar-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-gray-900);
  margin: 0 0 16px;
}

/* Tags List */
.blog-tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.blog-tag-btn {
  padding: 6px 14px;
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-full);
  background: var(--color-white);
  color: var(--color-gray-600);
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-base);
}

.blog-tag-btn:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.blog-tag-btn.active {
  background: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
}

/* Trending List */
.blog-trending-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.blog-trending-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: opacity var(--transition-base);
}

.blog-trending-item:hover {
  opacity: 0.8;
}

.blog-trending-rank {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  background: var(--color-primary-light);
  color: var(--color-primary);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
}

.blog-trending-info {
  flex: 1;
  min-width: 0;
}

.blog-trending-title {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-gray-900);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0 0 4px;
}

.blog-trending-meta {
  font-size: 0.6875rem;
  color: var(--color-gray-400);
}

/* Empty state */
.blog-empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--color-gray-400);
  grid-column: 1 / -1;
}

.blog-empty-state svg {
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
  stroke: var(--color-gray-300);
}

.blog-empty-state p {
  font-size: 0.9375rem;
}



/* ===================================
   RESPONSIVE - Blog
   =================================== */
@media (max-width: 1024px) {
  .blog-main {
    flex-direction: column;
  }

  .blog-sidebar {
    position: static;
  }
}

@media (max-width: 768px) {
  .blog-preview-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .blog-main {
    flex-direction: column;
  }

  .blog-articles-grid {
    grid-template-columns: 1fr;
  }

  .blog-card--no-image,
  .blog-card--no-image .blog-card-body {
    min-height: 0;
  }

  .blog-sidebar {
    position: static;
    display: contents;
  }

  /* Tags section above articles */
  .blog-sidebar-section:first-child {
    order: -1;
    width: 100%;
  }

  /* Trending section below articles */
  .blog-sidebar-section:last-child {
    order: 1;
    width: 100%;
  }

  .blog-sidebar-section:first-child .blog-tags-list {
    flex-wrap: wrap;
  }

  .blog-sidebar-section:first-child .blog-tag-btn {
    white-space: nowrap;
  }

  .blog-sidebar-section:first-child .blog-tags-list::-webkit-scrollbar {
    display: none;
  }

  /* Collapsible Tags panel (mobile only) — blog-list.js adds the classes.
     Collapsed by default so tags stop eating the first screen. */
  .blog-sidebar-section.blog-tags-collapsible {
    padding: 16px 20px;
  }
  .blog-sidebar-section.blog-tags-collapsible .blog-sidebar-title {
    margin: 0;
    cursor: pointer;
    position: relative;
    padding-right: 26px;
    -webkit-user-select: none;
    user-select: none;
  }
  .blog-sidebar-section.blog-tags-collapsible .blog-sidebar-title::after {
    content: "";
    position: absolute;
    right: 6px;
    top: 50%;
    width: 9px;
    height: 9px;
    border-right: 2px solid #90a0b6;
    border-bottom: 2px solid #90a0b6;
    transform: translateY(-75%) rotate(45deg);
    transition: transform 0.25s ease, border-color 0.25s ease;
  }
  .blog-sidebar-section.blog-tags-collapsible.collapsed .blog-tags-list {
    display: none;
  }
  .blog-sidebar-section.blog-tags-collapsible:not(.collapsed) .blog-sidebar-title {
    margin-bottom: 14px;
  }
  .blog-sidebar-section.blog-tags-collapsible:not(.collapsed) .blog-sidebar-title::after {
    transform: translateY(-25%) rotate(225deg);
    border-color: var(--color-primary, #00c98d);
  }

  .blog-preview-grid {
    grid-template-columns: 1fr;
  }
}

/* ===================================================
   Blog Article Detail Page — Test/SOP visual system
   (mirrors the test sop sample pages, .sop- design)
   =================================================== */
:root {
  --art-ink: #121827;
  --art-muted: #667085;
  --art-line: #e7edf4;
  --art-green: #2cb67d;
  --art-green-dark: #17845a;
  --art-warn: #fff6e6;
  --art-warn-line: #ffd28a;
  --art-danger: #fff2f0;
  --art-danger-line: #ffb4a8;
  --art-dark: #132033;
  --art-copy: #526074;
}

/* Gradient shell wraps the whole detail page — same palette as the homepage
   hero (white → soft mint #E8F4EF over #F7FFFB, see home.fixed.css .hero) */
.blog-article-shell {
  padding: 118px 20px 72px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.95) 43%, rgba(232, 244, 239, 0.82) 100%),
    #F7FFFB;
}

.blog-article-layout {
  max-width: 1160px;
  margin: 0 auto;
}
@media (min-width: 981px) {
  .blog-article-page .navbar > .container {
    max-width: 1160px;
    width: calc(100% - 40px);
    padding-left: 0;
    padding-right: 0;
  }
}
.blog-article-layout.has-toc {
  display: grid;
  grid-template-columns: minmax(0, 780px) 280px;
  gap: 52px;
  align-items: start;
}
/* Single-column articles (no sidebar TOC) stay readable-width */
.blog-article-layout:not(.has-toc) .blog-article {
  max-width: 820px;
  margin: 0 auto;
}

/* Article column — neutralise the old centered single column.
   min-width:0 lets this grid item shrink below its content's min-content so
   wide children (tables in .blog-table-wrap) scroll instead of stretching the
   whole page horizontally on narrow screens. */
.blog-article {
  max-width: none;
  min-width: 0;
  margin: 0;
  padding: 0;
}

/* Article fade-in after load */
.blog-article.is-loaded {
  animation: blogArticleFadeIn 0.4s ease both;
}
@keyframes blogArticleFadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Legacy back-link (kept for the dynamic article template and not-yet-migrated
   language pages). Static English articles use the breadcrumb below instead. */
.blog-article-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--art-green-dark);
  font-weight: 700;
  text-decoration: none;
  margin-bottom: 22px;
  transition: opacity 0.2s;
}
.blog-article-back:hover { opacity: 0.7; }
.blog-article-back svg { width: 20px; height: 20px; }

/* Breadcrumb: Home › Category › Title (mirrors test/index.html .test-breadcrumb) */
.blog-breadcrumb {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 24px;
  color: #73829a;
  font-size: 0.94rem;
  line-height: 1.4;
}
.blog-breadcrumb a { color: #62728b; text-decoration: none; }
.blog-breadcrumb a:hover { color: var(--art-green-dark); }
.blog-breadcrumb span[aria-hidden] { color: #b3bccb; }
.blog-breadcrumb > span:last-child { color: #36445c; font-weight: 600; }

.blog-article-hero-img {
  display: block;
  width: 100%;
  border-radius: 20px;
  margin-bottom: 26px;
  object-fit: cover;
  max-height: 420px;
  aspect-ratio: 780 / 608;
  box-shadow: 0 16px 40px rgba(18, 24, 39, 0.08);
}

/* Tags row: sits after the article body, before the CTA. Each chip deep-links
   into the blog list filtered by that tag (powers article_detail_tag_click). */
.blog-article-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 36px 0 8px;
  padding-top: 26px;
  border-top: 1px solid var(--art-line);
}
.blog-article-tags-label {
  color: #8a97a8;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.blog-article-tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.blog-article-tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(44, 182, 125, 0.09);
  color: var(--art-green-dark);
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  transition: background 0.18s, transform 0.18s;
}
.blog-article-tag:hover {
  background: rgba(44, 182, 125, 0.16);
  transform: translateY(-1px);
}

.blog-article-title {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 4.4vw, 3.4rem);
  font-weight: 800;
  color: var(--art-ink);
  line-height: 1.08;
  letter-spacing: 0;
  margin: 6px 0 16px;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

/* Written by / Reviewed by credit line (under the title, above the dates) */
.blog-article-byline {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--art-muted);
  font-size: 0.94rem;
  margin: 0 0 8px;
  flex-wrap: wrap;
}
.blog-byline-person {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.blog-author-avatar {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  border-radius: 50%;
  object-fit: cover;
  background: #edf2f7;
}
.blog-article-byline strong {
  color: #36445c;
  font-weight: 700;
}

.blog-article-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--art-muted);
  font-size: 0.92rem;
  margin: 0 0 26px;
  flex-wrap: wrap;
}

/* ── Content typography ── */
.blog-article-content { color: var(--art-copy); }

.blog-article-content h2 {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 3vw, 2.05rem);
  font-weight: 800;
  color: var(--art-ink);
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin: 36px 0 14px;
  padding-top: 36px;
  border-top: 1px solid var(--art-line);
}
.blog-article-content > h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}
.blog-article-content h3 {
  font-family: var(--font-display);
  font-size: 1.14rem;
  font-weight: 700;
  color: var(--art-ink);
  line-height: 1.35;
  margin: 24px 0 10px;
}
.blog-article-content p {
  color: var(--art-copy);
  line-height: 1.82;
  margin: 0 0 16px;
  font-size: 1.05rem;
}
.blog-article-content a {
  color: var(--art-green-dark);
  font-weight: 700;
}

/* Unordered lists → green circular bullets (matches .sop-list) */
.blog-article-content ul {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  display: grid;
  gap: 12px;
}
.blog-article-content ul li {
  position: relative;
  padding-left: 28px;
  margin: 0;
  color: var(--art-copy);
  line-height: 1.7;
  font-size: 1.05rem;
}
.blog-article-content ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--art-green);
  box-shadow: inset 0 0 0 5px #dcf7ea;
}

/* Ordered lists keep numerals */
.blog-article-content ol {
  list-style: decimal;
  padding-left: 24px;
  margin: 0 0 20px;
  color: var(--art-copy);
  line-height: 1.8;
  font-size: 1.05rem;
}
.blog-article-content ol li { margin-bottom: 8px; }
.blog-article-content ol li::marker { color: var(--art-green-dark); }
.blog-article-content li {
  min-width: 0;
  overflow-wrap: anywhere;
}

/* Key takeaways card (mirrors test/index.html .test-key-card) */
.blog-article-content .blog-takeaways {
  border: 1px solid rgba(0, 201, 141, 0.18);
  border-radius: 20px;
  background: linear-gradient(135deg, #effdf7, #f5fffb);
  box-shadow: none;
  padding: 28px;
  margin: 28px 0;
}
/* heading rendered as a small uppercase label (mirrors .test-card-label) */
.blog-article-content .blog-takeaways h2 {
  margin: 0 0 18px;
  padding: 0;
  border-top: 0;
  font-family: inherit;
  color: #00a878;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
/* list mirrors .test-check-list */
.blog-article-content .blog-takeaways ul { margin: 0; gap: 14px; }
.blog-article-content .blog-takeaways ul li {
  padding-left: 30px;
  color: #43516a;
  line-height: 1.65;
}
.blog-article-content .blog-takeaways ul li::before {
  top: 0.45em;
  width: 17px;
  height: 17px;
  background: #00c98d;
  box-shadow: inset 0 0 0 5px #dff9ef;
}

/* Safety / caution section → red danger callout (mirrors .sop-danger) */
.blog-article-content .blog-safety {
  background: var(--art-danger);
  border: 1px solid var(--art-danger-line);
  border-radius: 20px;
  padding: 24px 26px;
  margin: 28px 0;
}
.blog-article-content .blog-safety h2 {
  margin: 0 0 12px;
  padding: 0;
  border-top: 0;
  color: #8a3a2f;
  font-size: clamp(1.25rem, 2.4vw, 1.6rem);
}
.blog-article-content .blog-safety h3 { color: #8a3a2f; }
.blog-article-content .blog-safety p,
.blog-article-content .blog-safety li { color: #70423b; }
.blog-article-content .blog-safety ul li::before { background: #d9553f; box-shadow: inset 0 0 0 5px #ffe0d9; }
.blog-article-content .blog-safety a { color: #a33a2b; }

/* Medical disclaimer → low-key neutral note (mirrors the muted disclaimer note) */
.blog-article-content .blog-disclaimer {
  background: #f7f9fc;
  border: 1px solid var(--art-line);
  border-radius: 16px;
  padding: 18px 22px;
  margin: 28px 0;
}
.blog-article-content .blog-disclaimer h2 {
  margin: 0 0 8px;
  padding: 0;
  border-top: 0;
  color: var(--art-muted);
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.blog-article-content .blog-disclaimer p {
  color: var(--art-muted);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 0;
}

/* Quick-answer callout — light brand-green card (the dark navy version read
   too heavy right under the hero image) */
.blog-article-content .quick-answer {
  padding: 24px;
  border: 1px solid rgba(0, 201, 141, 0.22);
  border-left: 4px solid var(--art-green);
  border-radius: 20px;
  background: linear-gradient(135deg, #e9f9f2, #f4fcf9);
  color: #23443a;
  box-shadow: 0 12px 30px rgba(18, 24, 39, 0.05);
  margin: 0 0 32px;
}
.blog-article-content .quick-answer p { color: #33584b; }
.blog-article-content .quick-answer p:last-child { margin-bottom: 0; }
.blog-article-content .quick-answer a { color: var(--art-green-dark); }

/* Tables with dark header rows */
.blog-article-content .blog-table-wrap {
  overflow-x: auto;
  margin: 22px 0;
  border: 1px solid var(--art-line);
  border-radius: 16px;
  background: #fff;
  -webkit-overflow-scrolling: touch;
}
.blog-article-content table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: 0.92rem;
}
.blog-article-content thead th {
  background: var(--art-dark);
  color: #fff;
  text-align: left;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 700;
}
.blog-article-content th,
.blog-article-content td {
  padding: 15px 16px;
  border-bottom: 1px solid var(--art-line);
  vertical-align: top;
  line-height: 1.6;
  min-width: 10em;
}
.blog-article-content td { color: var(--art-copy); }
.blog-article-content td:first-child { color: #1c293b; font-weight: 800; }
.blog-article-content tbody tr:last-child td { border-bottom: 0; }

/* Blockquotes → soft warning note (matches .sop-note) */
.blog-article-content blockquote {
  padding: 20px;
  margin: 24px 0;
  background: var(--art-warn);
  border: 1px solid var(--art-warn-line);
  border-radius: 20px;
  color: #69502b;
}
.blog-article-content blockquote p {
  color: #69502b;
  font-style: normal;
  margin-bottom: 0;
}

/* Highlight box card */
.blog-article-content .highlight-box {
  background: linear-gradient(135deg, #effcf5, #fffaf0);
  border: 1px solid var(--art-line);
  border-radius: 20px;
  padding: 24px 26px;
  margin: 24px 0;
}
.blog-article-content .highlight-box h3 { margin-top: 0; }

.blog-article-content img {
  max-width: 100%;
  border-radius: 16px;
  margin: 24px 0;
}

/* Inline citations */
.blog-article-content sup.cite {
  vertical-align: baseline;
  line-height: inherit;
  font-size: inherit;
}
.blog-article-content sup.cite a {
  color: var(--art-green-dark);
  text-decoration: none;
  font-weight: 700;
  font-size: inherit;
}
.blog-article-content sup.cite a:hover { text-decoration: underline; }

/* References — collapsed by default inside a <details>; the section heading
   doubles as the summary, with the same chevron affordance as the FAQ items. */
.blog-article-content .blog-references-block {
  margin: 36px 0 0;
  padding-top: 0;
  border-top: 1px solid var(--art-line);
}
.blog-article-content .blog-references-block summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  list-style: none;
}
.blog-article-content .blog-references-block summary::-webkit-details-marker { display: none; }
.blog-article-content .blog-references-block summary h2 {
  margin: 36px 0 14px;
  padding-top: 0;
  border-top: 0;
}
.blog-article-content .blog-references-block summary::after {
  content: "";
  flex-shrink: 0;
  width: 9px;
  height: 9px;
  margin: 22px 6px 0 0;
  border-right: 2px solid #90a0b6;
  border-bottom: 2px solid #90a0b6;
  transform: rotate(45deg);
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.blog-article-content .blog-references-block[open] summary::after {
  transform: rotate(225deg);
  border-color: var(--art-green);
}

/* Numbered references */
.blog-article-content ol.blog-references {
  list-style: decimal;
  padding-left: 22px;
  margin-top: 12px;
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--art-copy);
}
.blog-article-content ol.blog-references li {
  margin-bottom: 12px;
  word-break: break-word;
}
.blog-article-content ol.blog-references a {
  color: var(--art-green-dark);
  word-break: break-word;
}

/* FAQ accordions (matches .sop-faq details) */
.blog-article-content .blog-faq-item {
  border: 1px solid var(--art-line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 16px 40px rgba(18, 24, 39, 0.05);
  padding: 18px 20px;
  margin: 12px 0;
}
.blog-article-content .blog-faq-item summary {
  cursor: pointer;
  color: #1c293b;
  font-weight: 800;
  font-size: 1.02rem;
  list-style: none;
  padding-right: 28px;
  position: relative;
}
.blog-article-content .blog-faq-item summary::-webkit-details-marker { display: none; }
/* chevron indicator (mirrors the homepage .faq-question svg: gray, rotates 180° and turns green when open) */
.blog-article-content .blog-faq-item summary::after {
  content: "";
  position: absolute;
  right: 4px;
  top: 50%;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--color-gray-400, #90a0b6);
  border-bottom: 2px solid var(--color-gray-400, #90a0b6);
  transform: translateY(-75%) rotate(45deg);
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.blog-article-content .blog-faq-item[open] summary::after {
  transform: translateY(-25%) rotate(225deg);
  border-color: var(--art-green);
}
.blog-article-content .blog-faq-item[open] summary { color: var(--art-green-dark); }
.blog-article-content .blog-faq-item p {
  margin: 10px 0 0;
  color: var(--art-copy);
  line-height: 1.7;
}

/* ── Sidebar "On this page" TOC ── */
.blog-article-toc {
  position: sticky;
  top: 96px;
  align-self: start;
}
/* mirrors test/index.html .test-toc */
.blog-toc-card {
  border: 1px solid #dce4ee;
  border-radius: 16px;
  background: #f7f9fc;
  box-shadow: none;
  padding: 30px 28px;
}
.blog-toc-title {
  margin: 0 0 20px;
  font-family: inherit;
  font-size: 1.02rem;
  font-weight: 700;
  color: #637188;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.blog-toc-list {
  display: grid;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
  line-height: 1.5;
}
.blog-toc-list li { margin: 0; }
.blog-toc-list a { color: #53637c; font-size: 1rem; text-decoration: none; }
.blog-toc-list a:hover { color: #00c98d; }

/* ── Share row (under the Published/Updated meta line) ── */
.blog-article-share {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: -8px 0 26px;
}
.blog-share-label {
  color: #8a97a8;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.blog-share-row {
  display: flex;
  gap: 10px;
}
.blog-share-row a,
.blog-share-row button {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid #d9e2ee;
  border-radius: 50%;
  background: #fff;
  color: #637188;
  text-decoration: none;
  cursor: pointer;
  padding: 0;
  position: relative;
  transition: color 0.2s, border-color 0.2s, transform 0.2s;
}
.blog-share-row a svg,
.blog-share-row button svg {
  width: 17px;
  height: 17px;
  display: block;
}
.blog-share-row a:hover,
.blog-share-row button:hover {
  color: var(--art-green-dark);
  border-color: var(--art-green);
  transform: translateY(-2px);
}
/* Copy outcome bubble shown by main.js after Copy link click */
.blog-share-row .share-copied::after,
.blog-share-row .share-copy-failed::after {
  content: attr(data-copy-feedback-label);
  position: absolute;
  top: -36px;
  left: 50%;
  transform: translateX(-50%);
  background: #132033;
  color: #fff;
  width: max-content;
  max-width: calc(100vw - 2rem);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1;
  padding: 6px 9px;
  border-radius: 6px;
  white-space: normal;
  overflow-wrap: anywhere;
  text-align: center;
  z-index: 2;
  pointer-events: none;
}
.blog-share-row .share-copy-failed::after {
  background: #8f2f2f;
}

@media (max-width: 640px) {
  .blog-share-row [data-share="copy"].share-copied::after,
  .blog-share-row [data-share="copy"].share-copy-failed::after {
    right: 0;
    left: auto;
    transform: none;
  }
}

/* ── Floating back-to-top (mirrors test/index.html .test-back-top) ── */
.blog-back-top {
  position: fixed;
  right: 34px;
  bottom: 34px;
  z-index: 20;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--art-green);
  color: #fff;
  font-size: 1.15rem;
  text-decoration: none;
  box-shadow: 0 12px 24px rgba(0, 201, 141, 0.28);
  transition: transform 0.2s, box-shadow 0.2s;
}
.blog-back-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 30px rgba(0, 201, 141, 0.34);
}

/* ── Final CTA (matches the sitewide .final-cta-card green gradient used on
   home / about / support) ── */
.blog-article-cta {
  position: relative;
  overflow: hidden;
  text-align: center;
  margin: 42px 0 28px;
  padding: 48px 28px;
  background:
    radial-gradient(circle at 82% 18%, rgba(255, 255, 255, 0.28), transparent 28%),
    radial-gradient(circle at 18% 85%, rgba(8, 115, 86, 0.2), transparent 30%),
    linear-gradient(135deg, #11CFA0 0%, #00C28C 46%, #009E73 100%);
  color: #fff;
  border: 0;
  border-radius: 32px;
  box-shadow: 0 28px 90px rgba(8, 115, 86, 0.18);
}
.blog-article-cta h2 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.4vw, 2.6rem);
  line-height: 1.1;
  color: #fff;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}
.blog-article-cta .final-store-badges {
  justify-content: center;
}
.blog-article-cta .blog-cta-label {
  color: #ffcf68;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 8px;
}
.blog-article-cta h3 {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}
.blog-article-cta p {
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.08rem;
  margin-bottom: 26px;
}
.blog-cta-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}
.blog-cta-actions .btn { display: inline-flex; }
.blog-cta-actions .btn-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.28);
}

/* Loading state (SPA fallback) */
.blog-article-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 80vh;
  gap: 16px;
  color: var(--art-copy);
}
.blog-article-loading .blog-scroll-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--color-gray-200);
  border-top-color: var(--art-green);
  border-radius: 50%;
  animation: blogSpinnerRotate 0.8s linear infinite;
}
@keyframes blogSpinnerRotate {
  to { transform: rotate(360deg); }
}

/* ── Mobile collapsible TOC (after the hero; hidden on desktop) ── */
.blog-toc-mobile { display: none; }

/* ── Responsive ── */
@media (max-width: 980px) {
  .blog-article-layout.has-toc {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }
  /* Desktop TOC card hides on mobile; the collapsible one takes over. Share
     stays in the aside and flows below the article. */
  .blog-article-toc { position: static; }
  .blog-article-toc .blog-toc-card { display: none; }

  .blog-toc-mobile {
    display: block;
    margin: 0 0 26px;
    border: 1px solid #dce4ee;
    border-radius: 14px;
    background: #f7f9fc;
    overflow: hidden;
  }
  .blog-toc-mobile summary {
    cursor: pointer;
    list-style: none;
    position: relative;
    padding: 15px 18px;
    color: #637188;
    font-weight: 800;
    font-size: 0.9rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }
  .blog-toc-mobile summary::-webkit-details-marker { display: none; }
  /* Chevron caret (mirrors the FAQ accordion): points down, rotates to point
     up when open — a dropdown affordance rather than a +/- toggle. */
  .blog-toc-mobile summary::after {
    content: "";
    position: absolute;
    right: 20px;
    top: 50%;
    width: 9px;
    height: 9px;
    border-right: 2px solid #90a0b6;
    border-bottom: 2px solid #90a0b6;
    transform: translateY(-75%) rotate(45deg);
    transition: transform 0.25s ease;
  }
  .blog-toc-mobile[open] summary::after { transform: translateY(-25%) rotate(225deg); }
  .blog-toc-mobile .blog-toc-list { padding: 0 18px 18px; }
  /* The global `.blog-toc-list { display: grid }` overrides the browser's
     collapse-when-closed rule, so hide the list explicitly while collapsed. */
  .blog-toc-mobile:not([open]) .blog-toc-list { display: none; }

  /* The mobile TOC renders inside .blog-article-content (below the Key
     takeaways card) — neutralise the content ol/a typography there. */
  .blog-article-content .blog-toc-mobile { margin: 0 0 26px; }
  .blog-article-content .blog-toc-mobile ol.blog-toc-list {
    list-style: none;
    padding: 0 18px 18px;
    margin: 0;
    font-size: 1rem;
  }
  .blog-article-content .blog-toc-mobile .blog-toc-list li { margin: 0; }
  .blog-article-content .blog-toc-mobile .blog-toc-list a {
    color: #53637c;
    font-weight: 400;
  }
  .blog-article-content .blog-toc-mobile .blog-toc-list a:hover { color: #00c98d; }
}
@media (max-width: 768px) {
  .blog-article-byline {
    flex-wrap: nowrap;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
  }
  .blog-article-byline > span { flex-shrink: 0; }
}
@media (max-width: 640px) {
  .blog-article-shell { padding: 88px 16px 56px; }
  .blog-back-top { right: 18px; bottom: 18px; }

  /* Tighten the hero block so a long title no longer fills the whole first
     screen. The desktop clamp floors at 2.1rem (~34px), far too large on a
     phone — scale it down and let it grow with the viewport instead. */
  /* Breadcrumb: one swipeable line instead of wrapping (long titles scroll). */
  .blog-breadcrumb {
    margin-bottom: 18px;
    font-size: 0.86rem;
    flex-wrap: nowrap;
    white-space: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
  }
  .blog-breadcrumb::-webkit-scrollbar { display: none; }
  .blog-breadcrumb a,
  .blog-breadcrumb span { flex-shrink: 0; }
  .blog-article-title {
    font-size: clamp(1.6rem, 6.6vw, 2.1rem);
    line-height: 1.16;
    letter-spacing: 0;
    margin: 2px 0 12px;
  }
  .blog-article-meta {
    gap: 4px 8px;
    font-size: 0.82rem;
    margin-bottom: 20px;
  }
  .blog-article-hero-img { border-radius: 16px; margin-bottom: 22px; }

  /* Slightly denser body copy — 1.82 line-height reads loose on narrow columns. */
  .blog-article-content p { font-size: 1rem; line-height: 1.72; }

  /* Data tables keep their table layout on phones and scroll horizontally
     inside .blog-table-wrap (no more full-height stacked cards). */
  .blog-article-content .blog-table-wrap {
    overflow-x: auto;
    border-radius: 14px;
  }
  .blog-article-content table { font-size: 0.88rem; }
  .blog-article-content th,
  .blog-article-content td {
    padding: 12px 14px;
    min-width: 8.5em;
  }
}

/* ---------- Touch Hit Targets ---------- */
/* The pills and share icons keep their 35px / 36px painted size; only the
   tappable box grows. Matches the .lang-btn rule in common.css. */
@media (pointer: coarse) {
  .blog-category-btn,
  .blog-share-row a,
  .blog-share-row button {
    position: relative;
  }

  .blog-category-btn::after,
  .blog-share-row a::before,
  .blog-share-row button::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    min-width: 44px;
    min-height: 44px;
    transform: translate(-50%, -50%);
  }
}
/* Buglist 2026-08-11: blog UI and content readability baseline. */
.blog-trending-meta,
.blog-trending-rank,
.blog-article-content .blog-takeaways h2,
.blog-article-content thead th,
.blog-article-tags-label,
.blog-share-label,
.blog-article-cta .blog-cta-label,
.blog-card-excerpt,
.blog-tag-btn,
.blog-trending-title,
.blog-article-tag,
.blog-category-btn,
.blog-page-btn,
.blog-page-ellipsis,
.blog-article-content .blog-disclaimer h2,
.blog-article-content .blog-disclaimer p,
.blog-article-content ol.blog-references,
.blog-article-content table,
.blog-article-meta,
.blog-empty-state p,
.blog-article-byline,
.blog-breadcrumb { font-size: 1rem; }

/* The card meta row keeps the homepage's 12px pill + read time; the 2026-08-11
   floor had pushed them to 16px/14px, which made the blog list read a size
   larger than the same cards on the homepage. */
.blog-card-read-time {
  color: #5F6F68;
  font-size: 0.75rem;
}

.blog-card-title,
.blog-card-excerpt { overflow-wrap: anywhere; }

.blog-card-tag-item {
  color: #59616B;
  overflow-wrap: anywhere;
}

.blog-card-category {
  color: #16734F;
  overflow-wrap: anywhere;
}

.blog-trending-meta {
  color: #5F6F68;
}

@media (max-width: 980px) {
  .blog-toc-mobile summary { font-size: 1rem; }
}

@media (max-width: 640px) {
  .blog-article-meta,
  .blog-breadcrumb,
  .blog-article-content table { font-size: 1rem; }
}

@media (max-width: 480px) {
  .blog-page-btn { font-size: 1rem; }
}

/* SEO/GEO accessibility pass: the painted pills stay compact, but every
   primary list control has a full mobile touch target. */
.blog-category-btn {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.blog-category-btn.active {
  color: var(--color-white);
  background: #2CB67D;
  border-color: #2CB67D;
}

.blog-page-btn {
  min-width: 44px;
  min-height: 44px;
  height: 44px;
}

/* Editorial list and taxonomy system (static, crawlable, responsive). */
.editorial-blog-page{--ed-ink:#111827;--ed-text:#4b5563;--ed-muted:#6b7280;--ed-line:#e6eeea;--ed-tint:#f3faf6;--ed-green:var(--color-primary,#2cb67d);--ed-green-dark:#13805a;--ed-shadow:0 24px 48px -30px rgba(17,24,39,.3);padding:120px 0 104px;background:linear-gradient(90deg,rgba(255,255,255,.98) 0,rgba(255,255,255,.95) 43%,rgba(232,244,239,.82) 100%),#f7fffb;color:var(--ed-text);}
.editorial-blog-container{max-width:1200px;margin:0 auto;}
.editorial-blog-page a:focus-visible,.editorial-blog-page button:focus-visible{outline:3px solid rgba(44,182,125,.45);outline-offset:3px;}

/* Header and search */
.editorial-page-header h1{margin:0;color:var(--ed-ink);font-family:var(--font-display);font-size:clamp(2rem,3.4vw,2.75rem);font-weight:800;line-height:1.1;letter-spacing:-.03em;text-wrap:balance;overflow-wrap:break-word;hyphens:auto;}
.editorial-page-header p{margin:14px 0 0;color:var(--ed-text);font-size:1.0625rem;line-height:1.6;text-wrap:pretty;}
/* /blog: title, subtitle, search and popular searches in one left-aligned column. */
.editorial-hub-header{display:flex;flex-direction:column;align-items:flex-start;gap:26px;margin:0 0 56px;padding-bottom:40px;border-bottom:1px solid var(--ed-line);}
.editorial-search-section{width:100%;max-width:560px;min-width:0;}
.editorial-search-suggestions{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-top:12px;}
.editorial-search-suggestions>span{color:var(--ed-muted);font-size:.8rem;font-weight:600;}
.editorial-search-suggestions button{height:30px;padding:0 13px;border:1px solid var(--ed-line);border-radius:999px;background:#fff;color:var(--ed-text);font:inherit;font-size:.8rem;font-weight:600;cursor:pointer;transition:border-color .2s ease,background .2s ease,color .2s ease;}
.editorial-search-suggestions button:hover{border-color:var(--ed-green);color:var(--ed-green-dark);}
.editorial-search-suggestions button[aria-pressed="true"]{border-color:var(--ed-green);background:var(--ed-green);color:#fff;}
.editorial-search-form{position:relative;display:flex;align-items:center;}
.editorial-search-icon{position:absolute;left:18px;width:18px;height:18px;color:var(--ed-muted);pointer-events:none;}
.editorial-search-form input{width:100%;height:46px;padding:0 20px 0 48px;text-overflow:ellipsis;border:1px solid #dbe8e1;border-radius:999px;background:#fff;color:var(--ed-ink);font:inherit;font-size:.97rem;box-shadow:none;transition:border-color .2s ease;-webkit-appearance:none;appearance:none;}
.editorial-search-form input::placeholder{color:var(--ed-muted);}
.editorial-search-form input:not(:placeholder-shown){padding-right:48px;}
.editorial-search-form input::-webkit-search-cancel-button{display:none;}
.editorial-search-form input:focus{outline:none;border-color:var(--ed-green);}
.editorial-search-form button{position:absolute;right:9px;display:grid;width:28px;height:28px;padding:0;place-items:center;border:0;border-radius:50%;background:#eef3f1;color:var(--ed-text);font-size:1.1rem;line-height:1;cursor:pointer;transition:opacity .15s ease,background .15s ease;}
.editorial-search-form button:hover{background:#e1ebe6;}
.editorial-search-form input:placeholder-shown+button{opacity:0;pointer-events:none;}

/* Sections */
.editorial-section{margin:0 0 72px;}
.editorial-section>h2,.editorial-sidebar h2,.editorial-essential>h2{margin:0 0 22px;color:var(--ed-ink);font-family:var(--font-display);font-size:1.55rem;font-weight:750;line-height:1.2;letter-spacing:-.02em;}
.editorial-heading-icon{flex:0 0 20px;width:20px;height:20px;color:var(--ed-green);}

/* Browse by topic */
.editorial-topic-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;}
.editorial-topic-card{position:relative;display:flex;min-width:0;align-items:center;gap:14px;padding:12px 42px 12px 12px;border:1px solid var(--ed-line);border-radius:18px;background:#fff;color:var(--ed-ink);text-decoration:none;transition:border-color .2s ease,box-shadow .2s ease,transform .2s ease;}
.editorial-topic-card:hover{border-color:color-mix(in srgb,var(--category-color) 35%,#fff);box-shadow:0 16px 32px -22px color-mix(in srgb,var(--category-color) 70%,transparent);transform:translateY(-2px);}
.editorial-topic-thumb{flex:0 0 56px;width:56px;height:56px;overflow:hidden;border-radius:14px;background:color-mix(in srgb,var(--category-color) 14%,#fff);}
.editorial-topic-thumb img{display:block;width:100%;height:100%;object-fit:cover;}
.editorial-topic-copy{display:flex;min-width:0;flex-direction:column;gap:5px;}
.editorial-topic-name{font-size:.95rem;font-weight:700;line-height:1.25;overflow-wrap:break-word;hyphens:auto;}
.editorial-topic-count{display:inline-flex;align-items:center;gap:6px;color:var(--ed-muted);font-size:.8rem;font-weight:500;}
.editorial-topic-count::before{content:"";width:6px;height:6px;border-radius:50%;background:var(--category-color);}
.editorial-topic-arrow{position:absolute;right:14px;width:18px;height:18px;color:#b9c3be;transition:color .2s ease,transform .2s ease;}
.editorial-topic-card:hover .editorial-topic-arrow{color:var(--category-color);transform:translateX(3px);}

/* Featured guides: carousel + five pillar guides */
.editorial-featured-layout{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(320px,1fr);gap:28px;align-items:stretch;}
.editorial-carousel,.editorial-pillar-card{overflow:hidden;border:1px solid var(--ed-line);border-radius:24px;background:#fff;box-shadow:var(--ed-shadow);}
.editorial-carousel-track{display:grid;}
.editorial-hero-slide{grid-area:1/1;opacity:0;visibility:hidden;transition:opacity .5s ease,visibility 0s linear .5s;}
.editorial-hero-slide.is-active,.editorial-pillar-card .editorial-hero-slide{opacity:1;visibility:visible;transition:opacity .5s ease;}
.editorial-hero-slide>a{display:flex;height:100%;flex-direction:column;color:inherit;text-decoration:none;}
.editorial-hero-media{position:relative;aspect-ratio:16/9;overflow:hidden;background:color-mix(in srgb,var(--category-color,#2cb67d) 12%,#f3f6f5);}
.editorial-hero-media .editorial-card-image{width:100%;height:100%;background:none;}
.editorial-hero-media img{display:block;width:100%;height:100%;aspect-ratio:auto;object-fit:cover;transition:transform .7s ease;}
.editorial-hero-slide>a:hover .editorial-hero-media img{transform:scale(1.03);}
.editorial-hero-copy{display:flex;flex-direction:column;align-items:flex-start;gap:10px;padding:24px 28px 6px;}
.editorial-hero-copy .editorial-category{padding:5px 11px;border-radius:999px;background:color-mix(in srgb,var(--category-color) 11%,#fff);color:var(--category-color);font-size:.75rem;font-weight:700;}
.editorial-hero-meta{display:flex;flex-wrap:wrap;align-items:center;gap:6px 12px;}
.editorial-hero-copy time{color:var(--ed-muted);font-size:.82rem;}
.editorial-hero-copy h2,.editorial-hero-copy h3{margin:0;color:var(--ed-ink);font-family:var(--font-display);font-size:clamp(1.4rem,2.3vw,1.9rem);font-weight:750;line-height:1.2;letter-spacing:-.02em;text-wrap:balance;transition:color .2s ease;}
.editorial-hero-slide>a:hover h2,.editorial-hero-slide>a:hover h3{color:var(--ed-green-dark);}
.editorial-hero-copy p{display:-webkit-box;margin:0;overflow:hidden;color:var(--ed-text);font-size:.95rem;line-height:1.6;-webkit-line-clamp:2;-webkit-box-orient:vertical;}
.editorial-carousel-controls{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 28px 22px;}
.editorial-carousel-dots{display:flex;align-items:center;}
.editorial-carousel-dots button{position:relative;width:22px;height:28px;padding:0;border:0;background:none;cursor:pointer;transition:width .3s ease;}
.editorial-carousel-dots button::before{content:"";position:absolute;top:50%;left:50%;width:8px;height:8px;border-radius:999px;background:#d3ded8;transform:translate(-50%,-50%);transition:width .3s ease,background .3s ease;}
.editorial-carousel-dots button.active{width:38px;}
.editorial-carousel-dots button.active::before{width:28px;background:var(--ed-green);}
.editorial-carousel-arrows{display:flex;gap:8px;}
.editorial-carousel-prev,.editorial-carousel-next{display:grid;width:40px;height:40px;padding:0;place-items:center;border:1px solid var(--ed-line);border-radius:50%;background:#fff;color:var(--ed-ink);cursor:pointer;transition:border-color .2s ease,background .2s ease,color .2s ease;}
.editorial-carousel-prev:hover,.editorial-carousel-next:hover{border-color:var(--ed-green);background:var(--ed-tint);color:var(--ed-green-dark);}
.editorial-carousel-prev svg,.editorial-carousel-next svg{width:18px;height:18px;}
.editorial-small-list{display:flex;flex-direction:column;padding:4px 20px;border:1px solid var(--ed-line);border-radius:24px;background:#fff;}
.editorial-small-card{display:flex;flex:1 1 auto;min-width:0;align-items:center;gap:16px;padding:16px 0;border-top:1px solid var(--ed-line);color:inherit;text-decoration:none;}
.editorial-small-card:first-of-type{border-top:0;}
.editorial-small-card .editorial-card-image{flex:0 0 92px;width:92px;height:72px;overflow:hidden;border-radius:12px;background:color-mix(in srgb,var(--category-color,#2cb67d) 12%,#f3f6f5);}
.editorial-small-card .editorial-card-image img{display:block;width:100%;height:100%;aspect-ratio:auto;object-fit:cover;transition:transform .5s ease;}
.editorial-small-card:hover .editorial-card-image img{transform:scale(1.06);}
.editorial-small-copy{display:flex;min-width:0;flex-direction:column;gap:5px;}
.editorial-small-copy .editorial-category{color:var(--category-color);font-size:.74rem;font-weight:700;letter-spacing:.01em;}
.editorial-small-copy strong{display:-webkit-box;overflow:hidden;color:var(--ed-ink);font-size:.95rem;font-weight:650;line-height:1.35;-webkit-line-clamp:2;-webkit-box-orient:vertical;transition:color .2s ease;}
.editorial-small-card:hover strong{color:var(--ed-green-dark);}
.editorial-meta,.editorial-card-meta{display:flex;flex-wrap:wrap;align-items:center;gap:2px 8px;color:var(--ed-muted);font-size:.78rem;line-height:1.4;}
.editorial-meta{gap:2px 10px;}
.editorial-card-meta>*+*::before{content:"·";margin-right:8px;color:#c4ccc8;}

/* Latest / All articles + sidebar */
.editorial-latest-section{scroll-margin-top:96px;}
.editorial-content-layout{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:40px;align-items:start;}
.editorial-latest-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:28px 24px;}
.editorial-article-card.blog-card{display:flex;min-width:0;min-height:0;flex-direction:column;overflow:hidden;border:1px solid var(--ed-line);border-radius:20px;background:#fff;color:inherit;text-decoration:none;transition:transform .25s ease,box-shadow .25s ease,border-color .25s ease;}
.editorial-article-card.blog-card:hover{border-color:#d4e5dc;box-shadow:0 24px 44px -28px rgba(17,24,39,.34);transform:translateY(-3px);}
.editorial-article-card .editorial-card-image{aspect-ratio:16/10;overflow:hidden;background:color-mix(in srgb,var(--category-color,#2cb67d) 12%,#f3f6f5);}
.editorial-article-card .editorial-card-image img{display:block;width:100%;height:100%;aspect-ratio:auto;object-fit:cover;transition:transform .6s ease;}
.editorial-article-card:hover .editorial-card-image img{transform:scale(1.04);}
.editorial-card-copy{display:flex;flex:1;flex-direction:column;gap:9px;padding:18px 20px 22px;}
.editorial-card-meta .editorial-category{color:var(--category-color,var(--ed-green-dark));font-weight:700;}
.editorial-card-copy h3{display:-webkit-box;margin:0;overflow:hidden;color:var(--ed-ink);font-family:var(--font-display);font-size:1.13rem;font-weight:700;line-height:1.32;letter-spacing:-.01em;-webkit-line-clamp:2;-webkit-box-orient:vertical;transition:color .2s ease;}
.editorial-article-card:hover h3{color:var(--ed-green-dark);}
.editorial-card-copy p{display:-webkit-box;margin:0;overflow:hidden;color:var(--ed-text);font-size:.9rem;line-height:1.55;-webkit-line-clamp:2;-webkit-box-orient:vertical;}
.editorial-sidebar{position:sticky;top:100px;display:flex;flex-direction:column;gap:20px;}
.editorial-sidebar>section{padding:24px;border:1px solid var(--ed-line);border-radius:22px;background:#fff;}
.editorial-sidebar h2{display:flex;align-items:center;gap:8px;margin-bottom:10px;font-size:1.15rem;}
.editorial-trending-item{display:grid;grid-template-columns:32px 1fr;gap:10px;align-items:baseline;padding:13px 0;border-top:1px solid var(--ed-line);color:var(--ed-ink);text-decoration:none;}
.editorial-trending-item:first-of-type{border-top:0;}
.editorial-trending-item b{color:var(--ed-green-dark);font-family:var(--font-display);font-size:1.15rem;font-weight:800;letter-spacing:-.02em;font-variant-numeric:tabular-nums;}
.editorial-trending-item span{font-size:.9rem;font-weight:600;line-height:1.42;transition:color .2s ease;}
.editorial-trending-item:hover span{color:var(--ed-green-dark);}
.editorial-sidebar>.editorial-other-topics{border-color:#ddefe5;background:var(--ed-tint);}
.editorial-other-list{margin:0;padding:0;list-style:none;}
.editorial-other-list a{display:flex;align-items:center;gap:10px;padding:8px 0;color:var(--ed-ink);font-size:.9rem;font-weight:600;line-height:1.35;text-decoration:none;}
.editorial-other-list a::before{content:"";flex:0 0 8px;height:8px;border-radius:50%;background:var(--category-color);}
.editorial-other-list a:hover span:first-child{color:var(--category-color);}
.editorial-other-count{margin-left:auto;color:var(--ed-muted);font-weight:500;font-variant-numeric:tabular-nums;}
.editorial-pagination{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:8px;padding:44px 0 0;}
.editorial-pagination:empty{display:none;}
.editorial-pagination a,.editorial-pagination span{display:inline-grid;min-width:40px;height:40px;place-items:center;padding:0 14px;border:1px solid var(--ed-line);border-radius:999px;background:#fff;color:var(--ed-text);font-size:.88rem;font-weight:600;text-decoration:none;transition:border-color .2s ease,color .2s ease,background .2s ease;}
.editorial-pagination span{border-color:transparent;background:none;}
.editorial-pagination a:hover{border-color:var(--ed-green);color:var(--ed-green-dark);}
.editorial-pagination a.active{border-color:var(--ed-green);background:var(--ed-green);color:#fff;}
.editorial-pagination a.disabled{opacity:.4;pointer-events:none;}

/* Category page */
.editorial-breadcrumb{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:0 0 18px;color:var(--ed-muted);font-size:1rem;}
.editorial-breadcrumb a{color:var(--ed-text);text-decoration:none;}
.editorial-breadcrumb a:hover{color:var(--ed-green-dark);}
.editorial-breadcrumb [aria-current]{color:var(--category-color,var(--ed-ink));font-weight:600;}
.editorial-category-page .editorial-page-header,.editorial-tag-page .editorial-page-header{margin:0 0 40px;}
.editorial-category-hero{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(320px,1fr);gap:28px;align-items:start;margin-bottom:72px;}
.editorial-pillar-card .editorial-hero-copy{padding-bottom:28px;}
.editorial-carousel .editorial-hero-copy h3,.editorial-pillar-card .editorial-hero-copy h2{display:-webkit-box;max-width:100%;overflow:hidden;-webkit-line-clamp:2;-webkit-box-orient:vertical;}
.editorial-start-badge{position:absolute;top:16px;left:16px;z-index:1;padding:7px 12px;border-radius:999px;background:#fff;color:var(--category-color);font-size:.72rem;font-weight:800;letter-spacing:.06em;text-transform:uppercase;box-shadow:0 8px 20px -8px rgba(17,24,39,.35);}
.editorial-essential{padding:6px 20px 8px;border:1px solid var(--ed-line);border-radius:24px;background:#fff;}
.editorial-essential>h2{margin:18px 0 6px;font-size:1.15rem;}
.editorial-essential .editorial-small-card:first-of-type{border-top:0;}
.editorial-essential-card .editorial-card-image{flex-basis:72px;width:72px;height:72px;}

/* Search */
.editorial-no-results{grid-column:1/-1;padding:56px 24px;border:1px dashed #d4e3db;border-radius:20px;text-align:center;color:var(--ed-text);}
.editorial-latest-grid [hidden]{display:none!important;}
.editorial-blog-page mark{padding:0 2px;border-radius:4px;background:#dcf5e8;color:var(--ed-green-dark);}
.editorial-blog-page.is-searching .editorial-topics-section,.editorial-blog-page.is-searching .editorial-featured-section{display:none;}

/* Touch targets: transparent ::after hit areas bring small controls to ~44px
   tall without changing their visible size or spacing. */
.editorial-search-suggestions button,.editorial-carousel-prev,.editorial-carousel-next,.editorial-pagination a{position:relative;}
.editorial-search-suggestions button::after,.editorial-search-form button::after,.editorial-carousel-dots button::after,.editorial-carousel-prev::after,.editorial-carousel-next::after,.editorial-pagination a::after{content:"";position:absolute;}
.editorial-search-suggestions button::after{inset:-8px -4px;}
.editorial-search-form button::after{inset:-8px;}
.editorial-carousel-dots button::after{inset:-8px 0;}
.editorial-carousel-prev::after,.editorial-carousel-next::after{inset:-3px;}
.editorial-pagination a::after{inset:-3px 0;}

@media(max-width:1100px){.editorial-topic-grid{grid-template-columns:repeat(2,minmax(0,1fr));}}
@media(max-width:900px){.editorial-featured-layout,.editorial-category-hero,.editorial-content-layout{grid-template-columns:1fr;}.editorial-hub-header{margin-bottom:44px;padding-bottom:32px;}.editorial-sidebar{position:static;}.editorial-section{margin-bottom:56px;}.editorial-category-hero{margin-bottom:56px;}}
@media(max-width:560px){
.editorial-blog-page{padding:100px 0 64px;}
.editorial-hub-header{gap:22px;margin-bottom:36px;padding-bottom:28px;}
.editorial-page-header h1{font-size:2rem;-webkit-hyphens:manual;hyphens:manual;text-wrap:wrap;}
/* German compounds such as Stoffwechselgesundheit are wider than a phone line: hyphenate those rather than cut them. Korean wraps between words, not syllables. */
.editorial-page-header h1:lang(de){-webkit-hyphens:auto;hyphens:auto;}
.editorial-page-header h1:lang(ko){word-break:keep-all;}
.editorial-page-header p{font-size:.95rem;}
.editorial-category-page .editorial-page-header,.editorial-tag-page .editorial-page-header{margin-bottom:28px;}
.editorial-section{margin-bottom:44px;}
.editorial-section>h2,.editorial-essential>h2{font-size:1.3rem;margin-bottom:16px;}
.editorial-topic-grid{gap:10px;}
.editorial-topic-card{gap:10px;padding:10px;border-radius:16px;}
.editorial-topic-thumb{display:none;}
.editorial-search-suggestions button:nth-of-type(n+3){display:none;}
.editorial-topic-name{font-size:.86rem;}
.editorial-topic-count{font-size:.74rem;}
.editorial-topic-arrow{display:none;}
.editorial-featured-layout,.editorial-category-hero{gap:16px;}
.editorial-carousel,.editorial-pillar-card,.editorial-small-list,.editorial-essential{border-radius:20px;}
.editorial-hero-copy{gap:8px;padding:18px 18px 4px;}
.editorial-hero-meta{flex-direction:column;align-items:flex-start;gap:8px;}
.editorial-carousel .editorial-hero-meta time{display:none;}
.editorial-hero-copy h2,.editorial-hero-copy h3{font-size:1.3rem;}
.editorial-hero-copy p{font-size:.9rem;}
.editorial-carousel-controls{padding:12px 18px 16px;}
.editorial-pillar-card .editorial-hero-copy{padding-bottom:20px;}
.editorial-small-list,.editorial-essential{padding:2px 16px;}
.editorial-essential>h2{margin-top:16px;}
.editorial-small-card{gap:14px;padding:14px 0;}
.editorial-small-card .editorial-card-image{flex-basis:68px;width:68px;height:56px;}
.editorial-meta{font-size:.74rem;}
.editorial-essential-card .editorial-card-image{flex-basis:56px;width:56px;height:56px;}
.editorial-small-copy strong{font-size:.9rem;}
.editorial-latest-grid{grid-template-columns:1fr;gap:16px;}
.editorial-card-copy{gap:7px;padding:14px 16px 18px;}
.editorial-card-copy h3{font-size:1.05rem;}
.editorial-latest-grid .editorial-card-copy p{display:none;}
.editorial-content-layout{gap:28px;}
.editorial-sidebar>section{padding:20px;}
.editorial-pagination{gap:6px;padding-top:32px;}
.editorial-pagination a,.editorial-pagination span{min-width:36px;height:36px;padding:0 10px;}
.editorial-pagination a::after{inset:-5px 0;}
.editorial-latest-section{scroll-margin-top:88px;}
.editorial-blog-page.is-searching .editorial-latest-grid{gap:0;padding:2px 16px;border:1px solid var(--ed-line);border-radius:20px;background:#fff;}
.editorial-blog-page.is-searching .editorial-no-results{border:0;}
.editorial-blog-page.is-searching .editorial-article-card.blog-card{flex-direction:row;align-items:center;gap:14px;padding:14px 0;border:0;border-top:1px solid var(--ed-line);border-radius:0;background:none;box-shadow:none;transform:none;}
.editorial-blog-page.is-searching .editorial-article-card.blog-card:first-child{border-top:0;}
.editorial-blog-page.is-searching .editorial-article-card .editorial-card-image{flex:0 0 68px;width:68px;height:56px;aspect-ratio:auto;border-radius:12px;}
.editorial-blog-page.is-searching .editorial-card-copy{min-width:0;gap:5px;padding:0;}
.editorial-blog-page.is-searching .editorial-card-meta{display:contents;}
.editorial-blog-page.is-searching .editorial-card-meta>*+*::before{content:none;}
.editorial-blog-page.is-searching .editorial-card-meta .editorial-category{order:0;color:var(--category-color,var(--ed-green-dark));font-size:.74rem;letter-spacing:.01em;}
.editorial-blog-page.is-searching .editorial-card-copy h3{order:1;font-family:inherit;font-size:.9rem;font-weight:650;line-height:1.35;letter-spacing:0;}
.editorial-blog-page.is-searching .editorial-card-meta time{order:2;font-size:.74rem;}
}
@media(prefers-reduced-motion:reduce){.editorial-blog-page *,.editorial-blog-page *::before{transition:none!important;}}
