/* ==========================================================================
   Ovile Blog Hub, Fixed Category Sub-Navigation, and Category Listing Pages
   Design System Rules:
   - Neutral text: #58585e
   - Primary text: #18181a
   - Brand accent: #123f39 (forest), #1b524a (hover)
   ========================================================================== */

/* Variable DM Sans with optical sizing (opsz 9..40) and continuous weights (300..800) */
@font-face {
  font-family: "DM Sans Blog";
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url("../assets/fonts/dm-sans-var-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "DM Sans Blog";
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url("../assets/fonts/dm-sans-var-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

.blog-page {
  --blog-ink: #18181a;
  --blog-text: #18181a;
  --blog-muted: #58585e;
  --blog-accent: #123f39;
  --blog-accent-hover: #1b524a;
  --blog-border: #e5e7eb;
  --blog-surface-hover: #f3f5f4;
  --blog-top-height: 74px;
  --blog-subnav-height: 52px;
  font-family: "DM Sans Blog", "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-optical-sizing: auto;
  color: var(--blog-text);
  background: #ffffff;
  -webkit-font-smoothing: antialiased;
}

/* Keep the main header flush, solid white, and permanently visible above the blog sub-header */
body.blog-page .top {
  padding-top: 0;
  background: #ffffff;
  border-bottom: 1px solid var(--blog-border);
  box-shadow: 0 4px 12px rgba(5, 28, 44, 0.07);
}

body.blog-page .top.is-hidden {
  transform: translate3d(0, 0, 0);
  opacity: 1;
  pointer-events: auto;
}

@media (max-width: 1050px) {
  body.blog-page .top {
    padding-top: 0;
  }
}

@media (min-width: 1051px) {
  body.blog-page .top-inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    max-width: 1440px;
    padding: 12px clamp(20px, 2.8vw, 40px);
  }

  body.blog-page .nav {
    justify-self: center;
    margin-left: 0;
  }

  body.blog-page .right {
    grid-column: 3;
    margin-left: 0;
  }

  /* Anchor mega-menus to .top-inner instead of the leftmost trigger so popups never clip off-screen.
     Vertical padding/negative-margin extends the trigger hover area cleanly down to .top-inner's bottom. */
  body.blog-page .nav-item.has-mega {
    position: static;
    padding-block: 22px;
    margin-block: -22px;
  }

  body.blog-page .mega-menu {
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: min(920px, calc(100vw - 32px));
    padding-top: 8px;
  }
}

@media (min-width: 1051px) and (max-width: 1200px) {
  body.blog-page .top-inner {
    gap: 16px;
  }

  body.blog-page .nav {
    gap: 20px;
  }
}

/* Secondary fixed blog navigation attached directly below .top */
.blog-subnav {
  position: fixed;
  top: var(--blog-top-height, 74px);
  left: 0;
  right: 0;
  z-index: 990;
  background: #ffffff;
  border-bottom: 1px solid var(--blog-border);
}

.blog-subnav-inner {
  max-width: 1188px;
  margin: 0 auto;
  padding: 0 24px;
}

.blog-subnav-list {
  display: flex;
  align-items: stretch;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
  min-height: 52px;
}

@media (min-width: 1051px) {
  .blog-subnav-list {
    overflow: visible;
  }

  .blog-subnav-item:last-child .blog-subnav-menu {
    left: auto;
    right: 0;
  }
}

@media (max-width: 1050px) {
  .blog-subnav-inner {
    padding: 0 14px;
  }

  .blog-subnav-list {
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    gap: 2px;
  }

  .blog-subnav-list::-webkit-scrollbar {
    display: none;
  }
}

.blog-subnav-item {
  position: relative;
  display: flex;
  align-items: stretch;
  flex: 0 0 auto;
}

.blog-subnav-link,
.blog-subnav-trigger {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 14px;
  min-height: 52px;
  border: 0;
  background: transparent;
  color: var(--blog-ink);
  font: inherit;
  font-size: 14.5px;
  font-weight: 400;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  position: relative;
  transition: color 160ms ease;
}

.blog-subnav-link:hover,
.blog-subnav-trigger:hover,
.blog-subnav-item.is-open > .blog-subnav-trigger {
  color: var(--blog-accent);
}

.blog-subnav-link.is-active,
.blog-subnav-trigger.is-active {
  color: var(--blog-accent);
  font-weight: 400;
}

.blog-subnav-link.is-active::after,
.blog-subnav-trigger.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2.5px;
  background: var(--blog-accent);
  border-radius: 2px 2px 0 0;
}

.blog-subnav-link:focus-visible,
.blog-subnav-trigger:focus-visible,
.blog-subnav-menu-all:focus-visible,
.blog-subnav-menu-link:focus-visible,
.blog-cat-filter-clear:focus-visible,
.blog-page-btn:focus-visible {
  outline: 2px solid var(--blog-accent);
  outline-offset: -3px;
  border-radius: 6px;
}

.blog-subnav-chevron {
  width: 12px;
  height: 12px;
  flex: 0 0 auto;
  transition: transform 180ms cubic-bezier(0.16, 1, 0.3, 1);
}

.blog-subnav-item.is-open .blog-subnav-chevron {
  transform: rotate(180deg);
}

/* Category dropdown panel with "Ver todos ->" header + divider + subtopics */
.blog-subnav-menu {
  position: absolute;
  top: calc(100% + 1px);
  left: 0;
  min-width: 248px;
  padding: 0;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--blog-border);
  border-radius: 12px;
  box-shadow: 0 18px 40px -10px rgba(5, 28, 44, 0.16), 0 2px 8px rgba(5, 28, 44, 0.06);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  pointer-events: none;
  transition: opacity 160ms ease, transform 180ms cubic-bezier(0.16, 1, 0.3, 1), visibility 0s linear 180ms;
  z-index: 995;
}

.blog-subnav-item.is-open > .blog-subnav-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
  transition-delay: 0s;
}

/* Floating positioning on narrow viewports so overflow-x containers never clip dropdowns */
.blog-subnav-menu.is-floating {
  position: fixed;
  z-index: 995;
}

.blog-subnav-menu-all {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  text-decoration: none;
  color: var(--blog-accent);
  font-size: 14.5px;
  font-weight: 500;
  transition: background-color 140ms ease;
}

.blog-subnav-menu-all:hover {
  background: var(--blog-surface-hover);
}

.blog-subnav-menu-arrow {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  transition: transform 160ms ease;
}

.blog-subnav-menu-all:hover .blog-subnav-menu-arrow {
  transform: translateX(2px);
}

.blog-subnav-menu-divider {
  height: 1px;
  background: var(--blog-border);
  margin: 0;
}

.blog-subnav-menu-list {
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.blog-subnav-menu-link {
  display: block;
  padding: 9px 10px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--blog-text);
  font-size: 14px;
  font-weight: 400;
  transition: background-color 140ms ease, color 140ms ease;
}

.blog-subnav-menu-link:hover {
  background: var(--blog-surface-hover);
  color: var(--blog-accent);
}

.blog-subnav-menu-link.is-active {
  color: var(--blog-accent);
  background: #f2f7f5;
  font-weight: 500;
}

/* Main canvas reserved below fixed main header + fixed blog subnav */
.blog-main {
  padding-top: calc(var(--blog-top-height, 74px) + var(--blog-subnav-height, 52px));
  min-height: 100vh;
  background: #ffffff;
}

.blog-hub-page .blog-main,
.blog-category-page .blog-main {
  min-height: auto;
}

/* ==========================================================================
   Category Listing Pages & Blog Hub (/blog/ & /blog/<category>/)
   ========================================================================== */
.blog-cat-container {
  width: min(100% - 48px, 1140px);
  margin-inline: auto;
}

@media (max-width: 640px) {
  .blog-cat-container {
    width: min(100% - 28px, 1140px);
  }
}

.blog-cat-header {
  padding: clamp(44px, 5vw, 68px) 0 clamp(28px, 3vw, 40px);
}

.blog-cat-title {
  margin: 0;
  color: var(--blog-ink);
  font-size: 52px;
  font-weight: 450;
  line-height: 60px;
  letter-spacing: -0.005em;
  text-wrap: initial;
}

@media (max-width: 1024px) {
  .blog-cat-title {
    font-size: 46px;
    line-height: 54px;
  }
}

@media (max-width: 767px) {
  .blog-cat-title {
    font-size: 36px;
    line-height: 44px;
  }
}

.blog-cat-filter-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.blog-cat-filter-bar[hidden] {
  display: none;
}

.blog-cat-filter-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--blog-surface-hover);
  color: var(--blog-accent);
  font-size: 13.5px;
  font-weight: 400;
}

.blog-cat-filter-clear {
  color: var(--blog-muted);
  font-size: 13.5px;
  font-weight: 400;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.blog-cat-filter-clear:hover {
  color: var(--blog-ink);
}

.blog-cat-content {
  padding-bottom: clamp(56px, 7vw, 96px);
}

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

@media (max-width: 980px) {
  .blog-cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 36px 24px;
  }
}

@media (max-width: 640px) {
  .blog-cards-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

.blog-card {
  display: flex;
  flex-direction: column;
}

.blog-card[hidden] {
  display: none;
}

.blog-card-thumb {
  position: relative;
  display: block;
  height: 210px;
  border-radius: 10px;
  overflow: hidden;
  background: #f5f5f6;
  margin-bottom: 16px;
}

@media (max-width: 640px) {
  .blog-card-thumb {
    height: auto;
    aspect-ratio: 359 / 210;
  }
}

.blog-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 260ms cubic-bezier(0.16, 1, 0.3, 1);
}

.blog-card:hover .blog-card-thumb img {
  transform: scale(1.03);
}

.blog-card-pill {
  position: absolute;
  top: 12px;
  left: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 24px;
  padding: 0 10px;
  border-radius: 6px;
  background: #ffffff;
  color: var(--blog-ink);
  font-size: 12px;
  font-weight: 400;
  line-height: 24px;
  box-shadow: 0 2px 8px rgba(24, 24, 26, 0.08);
}

.blog-card-pill::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blog-accent);
  flex: 0 0 auto;
}

.blog-card-meta-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 16px;
  font-weight: 300;
  line-height: 22px;
  color: var(--blog-ink);
}

.blog-card-tags {
  text-transform: uppercase;
  letter-spacing: 0;
  font-weight: 300;
}

.blog-card-date {
  flex: 0 0 auto;
  white-space: nowrap;
}

.blog-card-title {
  margin: 0 0 10px;
  font-size: 24px;
  font-weight: 420;
  line-height: 30px;
  letter-spacing: -0.005em;
  color: var(--blog-ink);
  text-wrap: initial;
}

@media (max-width: 767px) {
  .blog-card-title {
    font-size: 20px;
    line-height: 28px;
  }
}

.blog-card-title a {
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  color: inherit;
  text-decoration: none;
  transition: color 140ms ease;
}

.blog-card-title a:hover {
  color: var(--blog-accent);
}

.blog-card-readtime {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 300;
  line-height: 21px;
  color: var(--blog-muted);
}

.blog-card-excerpt {
  margin: 0 0 16px;
  font-size: 16px;
  font-weight: 300;
  line-height: 24px;
  color: var(--blog-muted);
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card-author {
  margin: auto 0 0;
  padding-top: 12px;
  font-size: 15.4px;
  font-weight: 300;
  line-height: 26px;
  color: var(--blog-ink);
}

/* Numbered pagination */
.blog-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 52px;
}

.blog-pagination[hidden] {
  display: none;
}

.blog-page-btn {
  display: inline-grid;
  place-items: center;
  min-width: 38px;
  height: 38px;
  padding: 0 10px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 400;
  color: var(--blog-muted);
  transition: background-color 140ms ease, color 140ms ease;
}

.blog-page-btn:hover {
  background: var(--blog-surface-hover);
  color: var(--blog-ink);
}

.blog-page-btn.is-current {
  background: var(--blog-accent);
  color: #ffffff;
  font-weight: 500;
  pointer-events: none;
}

.blog-page-ellipsis {
  color: var(--blog-muted);
  padding: 0 4px;
  font-size: 14px;
}

/* Clean placeholder shown when a category has no published posts yet */
.blog-empty-state {
  padding: 48px 32px;
  border: 1px dashed var(--blog-border);
  border-radius: 20px;
  background: #f8f9fa;
  text-align: center;
}

.blog-empty-state[hidden] {
  display: none;
}

.blog-empty-state h2 {
  margin: 0 0 10px;
  font-size: clamp(20px, 1.8vw, 24px);
  font-weight: 400;
  line-height: 1.333;
  color: var(--blog-ink);
}

.blog-empty-state p {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--blog-muted);
}

/* ==========================================================================
   Clean White Blog Footer (Overrides dark global footer on body.blog-page)
   ========================================================================== */
body.blog-page .footer {
  background: #ffffff;
  border-top: 1px solid var(--blog-border);
  color: var(--blog-text);
}

body.blog-page .footer::before {
  display: none;
  content: none;
  background: none;
}

body.blog-page .footer-solutions-nav {
  border-top: 1px solid var(--blog-border);
}

.blog-footer-column {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.blog-footer-column h3 {
  margin: 0 0 20px 0;
  color: var(--blog-ink);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.2px;
}

.blog-footer-column a,
.blog-footer-column a:visited,
.blog-footer-column a:link {
  display: block;
  margin-top: 14px;
  color: var(--blog-muted);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  text-decoration: none;
  transition: color 180ms ease, transform 180ms ease;
}

.blog-footer-column a:hover,
.blog-footer-column a:focus {
  color: var(--blog-accent);
  text-decoration: none;
  transform: translateX(2px);
}

body.blog-page .footer-contact p {
  color: var(--blog-muted);
}

body.blog-page .footer-social a {
  background: var(--blog-surface-hover);
  color: var(--blog-ink);
}

body.blog-page .footer-social a:hover {
  background: #e5ebe8;
  color: var(--blog-accent);
}

body.blog-page .footer-bottom {
  border-top: 1px solid var(--blog-border);
}

body.blog-page .footer-legal-links a,
body.blog-page .footer-legal-links button.footer-privacy-preferences {
  color: var(--blog-muted);
}

body.blog-page .footer-legal-links a:hover,
body.blog-page .footer-legal-links button.footer-privacy-preferences:hover {
  color: var(--blog-accent);
}

body.blog-page .footer-cnpj,
body.blog-page .footer-copyright {
  color: var(--blog-muted);
}

/* ==========================================================================
   Blog Post Pages (/blog/posts/<slug>/)
   Matches 2-col split hero, 2-col sticky reading grid (TOC + article),
   author card, and "Explore outros artigos" section using clean specificity.
   ========================================================================== */
body.blog-post-page .blog-main {
  padding-top: var(--blog-top-height, 74px);
  min-height: auto;
}

body.blog-post-page .top .blog-reading-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 3px;
  background: transparent;
  pointer-events: none;
  z-index: 1002;
}

body.blog-post-page .top .blog-reading-progress-bar {
  height: 100%;
  width: 0%;
  background: var(--blog-accent);
  border-radius: 0 2px 2px 0;
}

.blog-post-container {
  width: min(100% - 80px, 1348px);
  margin-inline: auto;
}

@media (max-width: 920px) {
  .blog-post-container {
    width: min(100% - 48px, 1348px);
  }
}

@media (max-width: 640px) {
  .blog-post-container {
    width: min(100% - 28px, 1348px);
  }
}

/* Split Hero: Left Copy + Right Rounded Cover */
.blog-post-hero {
  padding: clamp(36px, 4.5vw, 60px) 0 clamp(28px, 3.5vw, 44px);
}

.blog-post-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
  gap: clamp(28px, 4.5vw, 60px);
  align-items: center;
}

@media (max-width: 920px) {
  .blog-post-hero-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

.blog-post-pills {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.blog-post-pill {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 20px;
  background: #f2f2f2;
  color: var(--blog-ink);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.45;
  text-decoration: none;
  transition: background-color 140ms ease, color 140ms ease;
}

.blog-post-pill:hover {
  background: #e5ebe8;
  color: var(--blog-accent);
}

.blog-post-title {
  margin: 0 0 12px;
  color: var(--blog-ink);
  font-size: 56px;
  font-weight: 450;
  line-height: 64px;
  letter-spacing: -0.005em;
  text-wrap: initial;
}

@media (max-width: 1024px) {
  .blog-post-title {
    font-size: 44px;
    line-height: 52px;
  }
}

@media (max-width: 767px) {
  .blog-post-title {
    font-size: 34px;
    line-height: 42px;
  }
}

.blog-post-meta {
  margin: 0;
  font-size: 18px;
  font-weight: 300;
  line-height: 24px;
  color: var(--blog-muted);
}

@media (max-width: 767px) {
  .blog-post-meta {
    font-size: 15px;
    line-height: 22px;
  }
}

.blog-post-byline {
  margin: 24px 0 0;
  font-size: 20px;
  font-weight: 300;
  line-height: 24px;
  color: var(--blog-muted);
}

@media (max-width: 767px) {
  .blog-post-byline {
    font-size: 16px;
    line-height: 22px;
  }
}

.blog-post-byline a {
  color: var(--blog-accent);
  font-size: inherit;
  font-weight: 300;
  line-height: inherit;
  text-decoration: none;
}

.blog-post-byline a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.blog-post-cover {
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #f5f5f6;
}

.blog-post-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 2-Column Sticky Reading Grid (TOC Left + Article Center) */
.blog-post-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 748px);
  justify-content: start;
  gap: clamp(36px, 4.5vw, 64px);
  align-items: start;
  padding-top: clamp(24px, 3vw, 40px);
  padding-bottom: clamp(56px, 6vw, 88px);
}

@media (max-width: 960px) {
  .blog-post-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

.blog-post-sidebar {
  position: sticky;
  top: calc(var(--blog-top-height, 74px) + 28px);
}

@media (max-width: 960px) {
  .blog-post-sidebar {
    position: static;
  }
}

.blog-back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 24px;
  color: var(--blog-ink);
  font-size: 14px;
  font-weight: 400;
  line-height: 21px;
  text-decoration: none;
  transition: color 140ms ease;
}

.blog-back-link:hover {
  color: var(--blog-accent);
}

.blog-toc-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0;
  margin-bottom: 15px;
  border: 0;
  background: transparent;
  color: var(--blog-muted);
  font: inherit;
  font-size: 14px;
  font-weight: 400;
  line-height: 24px;
  cursor: pointer;
}

.blog-toc-chevron {
  width: 12px;
  height: 12px;
  transition: transform 180ms ease;
}

.blog-toc-toggle.is-collapsed .blog-toc-chevron {
  transform: rotate(180deg);
}

.blog-toc-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-left: 2px solid var(--blog-border);
}

.blog-toc-list[hidden] {
  display: none;
}

.blog-toc-list a {
  display: block;
  padding-left: 14px;
  margin-left: -2px;
  border-left: 2px solid transparent;
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  color: var(--blog-ink);
  text-decoration: none;
  transition: color 140ms ease, border-color 140ms ease;
}

.blog-toc-list a:hover,
.blog-toc-list a.is-active {
  color: var(--blog-accent);
  border-left-color: var(--blog-accent);
  font-weight: 400;
}

/* Main Article Prose */
.blog-post-article {
  min-width: 0;
  font-size: 20px;
  font-weight: 400;
  line-height: 32px;
  letter-spacing: 0.3px;
  color: var(--blog-text);
}

.blog-post-article h2 {
  margin: 40px 0 30px;
  color: var(--blog-ink);
  font-size: 36px;
  font-weight: 450;
  line-height: 44px;
  letter-spacing: -0.005em;
  text-wrap: initial;
  scroll-margin-top: calc(var(--blog-top-height, 74px) + 28px);
}

.blog-post-article > h2:first-of-type {
  margin-top: 32px;
}

.blog-post-article h3 {
  margin: 25px 0 15px;
  color: var(--blog-ink);
  font-size: 32px;
  font-weight: 450;
  line-height: 40px;
  letter-spacing: -0.005em;
  text-wrap: initial;
  scroll-margin-top: calc(var(--blog-top-height, 74px) + 28px);
}

.blog-post-article h4 {
  margin: 16px 0 8px;
  color: var(--blog-ink);
  font-size: 24px;
  font-weight: 500;
  line-height: 29px;
  letter-spacing: 0;
  text-wrap: initial;
  scroll-margin-top: calc(var(--blog-top-height, 74px) + 28px);
}

@media (max-width: 767px) {
  .blog-post-article {
    font-size: 17px;
    line-height: 28px;
  }

  .blog-post-article h2 {
    font-size: 28px;
    line-height: 36px;
  }

  .blog-post-article h3 {
    font-size: 24px;
    line-height: 32px;
  }

  .blog-post-article h4 {
    font-size: 20px;
    line-height: 26px;
  }
}

.blog-post-article p {
  margin: 0 0 20px;
  color: var(--blog-text);
}

.blog-post-article strong {
  font-weight: 600;
  color: var(--blog-ink);
}

.blog-post-article a {
  color: var(--blog-accent);
  font-size: inherit;
  font-weight: 400;
  line-height: inherit;
  text-decoration: none;
}

.blog-post-article a:hover {
  color: var(--blog-accent-hover);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.blog-post-article ul,
.blog-post-article ol {
  margin: 0 0 20px;
  padding-left: 32px;
}

@media (max-width: 640px) {
  .blog-post-article ul,
  .blog-post-article ol {
    padding-left: 22px;
  }
}

.blog-post-article li {
  margin-bottom: 8px;
}

.blog-post-article figure {
  margin: 28px 0 32px;
}

.blog-post-article figure img {
  width: 100%;
  height: auto;
  border-radius: 14px;
  display: block;
  border: 1px solid var(--blog-border);
}

.blog-post-article figcaption {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: 0;
  color: var(--blog-muted);
  text-align: center;
}

.blog-callout {
  margin: 28px 0;
  padding: 28px 32px;
  border-radius: 16px;
  background: #f8f9fa;
  border-left: 3px solid var(--blog-accent);
}

.blog-callout p:last-child {
  margin-bottom: 0;
}

/* Comparison Table inside Blog Posts */
.blog-table-wrap {
  margin: 28px 0 34px;
  overflow-x: auto;
  border: 1px solid var(--blog-border);
  border-radius: 20px;
  background: #eeeef0;
}

.blog-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 14px;
  line-height: 20px;
  letter-spacing: 0;
}

.blog-table th,
.blog-table td {
  padding: 16px;
  text-align: left;
  background: #f8f9fa;
  border-bottom: 1px solid #ffffff;
  border-right: 1px solid #ffffff;
}

.blog-table th {
  color: var(--blog-muted);
  font-size: 14px;
  font-weight: 500;
}

.blog-table td {
  color: var(--blog-text);
  font-size: 14px;
  font-weight: 400;
}

.blog-table tbody td:first-child {
  font-weight: 500;
  color: var(--blog-ink);
}

.blog-table th:last-child,
.blog-table td:last-child {
  border-right: 0;
}

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

/* Author Box */
.blog-author-card {
  margin-top: 36px;
  padding: clamp(28px, 4vw, 50px);
  border-radius: 20px;
  background: #f8f9fa;
}

.blog-author-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
}

.blog-author-identity {
  display: flex;
  align-items: center;
  gap: 20px;
}

.blog-author-photo {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 20%;
  flex: 0 0 auto;
}

@media (max-width: 560px) {
  .blog-author-photo {
    width: 72px;
    height: 72px;
  }
}

.blog-post-article .blog-author-card .blog-author-eyebrow {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 300;
  line-height: 19px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--blog-ink);
}

.blog-post-article .blog-author-card .blog-author-name {
  margin: 0;
  font-size: 32px;
  font-weight: 450;
  line-height: 1.3;
  letter-spacing: 0;
  color: var(--blog-ink);
  text-wrap: initial;
}

.blog-post-article .blog-author-card .blog-author-bio {
  margin: 0 0 20px;
  font-size: 18px;
  font-weight: 400;
  line-height: 28px;
  letter-spacing: 0;
  color: var(--blog-text);
}

@media (max-width: 767px) {
  .blog-post-article .blog-author-card .blog-author-name {
    font-size: 24px;
  }

  .blog-post-article .blog-author-card .blog-author-bio {
    font-size: 16px;
    line-height: 26px;
  }
}

.blog-post-article .blog-author-card .blog-author-more {
  display: inline-block;
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
  letter-spacing: 0;
  color: var(--blog-ink);
  text-decoration: none;
}

.blog-post-article .blog-author-card .blog-author-more:hover {
  color: var(--blog-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Explore Other Articles Section */
.blog-explore {
  padding: clamp(40px, 5vw, 64px) 0 clamp(56px, 7vw, 88px);
  border-top: 1px solid var(--blog-border);
}

.blog-explore[hidden] {
  display: none;
}

.blog-explore-title {
  margin: 0 0 24px;
  font-size: 48px;
  font-weight: 450;
  line-height: 56px;
  letter-spacing: -0.005em;
  color: var(--blog-ink);
  text-wrap: initial;
}

@media (max-width: 1024px) {
  .blog-explore-title {
    font-size: 38px;
    line-height: 46px;
  }
}

@media (max-width: 767px) {
  .blog-explore-title {
    font-size: 30px;
    line-height: 38px;
  }
}

.blog-explore-pills {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.blog-explore-pill {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  border: 0;
  background: rgba(0, 0, 0, 0.05);
  color: var(--blog-ink);
  font: inherit;
  font-size: 14px;
  font-weight: 400;
  line-height: 21px;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 140ms ease, color 140ms ease;
}

.blog-explore-pill:hover {
  background: #e5ebe8;
}

.blog-explore-pill.is-active {
  background: #18181a;
  color: #ffffff;
  font-weight: 500;
}

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

@media (max-width: 860px) {
  .blog-explore-grid {
    grid-template-columns: 1fr;
  }
}

.blog-explore-card {
  display: grid;
  grid-template-columns: 264px minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  text-decoration: none;
  color: inherit;
}

@media (max-width: 1080px) {
  .blog-explore-card {
    grid-template-columns: 200px minmax(0, 1fr);
  }
}

.blog-explore-card[hidden] {
  display: none;
}

@media (max-width: 560px) {
  .blog-explore-card {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

.blog-explore-thumb {
  height: 160px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--blog-surface-hover);
}

@media (max-width: 560px) {
  .blog-explore-thumb {
    height: auto;
    aspect-ratio: 16 / 10;
  }
}

.blog-explore-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 240ms cubic-bezier(0.16, 1, 0.3, 1);
}

.blog-explore-card:hover .blog-explore-thumb img {
  transform: scale(1.03);
}

.blog-explore-card-title {
  margin: 0 0 10px;
  font-size: 24px;
  font-weight: 420;
  line-height: 32px;
  letter-spacing: -0.005em;
  color: var(--blog-ink);
  text-wrap: initial;
  transition: color 140ms ease;
}

@media (max-width: 767px) {
  .blog-explore-card-title {
    font-size: 20px;
    line-height: 28px;
  }
}

.blog-explore-card:hover .blog-explore-card-title {
  color: var(--blog-accent);
}

.blog-explore-card-meta {
  margin: 0;
  font-size: 14px;
  font-weight: 300;
  line-height: 21px;
  color: var(--blog-muted);
}
