/* Blog / Post — base from style.css + page polish (single source) */

.news-shell,
.post-shell,
.solution-shell,
.platform-shell {
  width: min(1288px, calc(100% - 64px));
  margin: 0 auto;
}

.news-hero-section {
  padding: 80px 32px 128px;
}

.news-featured {
  margin-top: 80px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px;
  align-items: stretch;
}

.news-featured-media,
.news-featured-copy {
  min-width: 0;
}

.news-featured-media {
  overflow: hidden;
  border-radius: 16px;
  aspect-ratio: 600 / 400;
}

.news-featured-media a {
  display: block;
  width: 100%;
  height: 100%;
}

.news-featured-media img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-featured-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 24px;
}

.news-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #667085;
  font-size: 14px;
  line-height: 20px;
}

.news-category {
  color: var(--primary);
  font-weight: 500;
}

.news-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #98a2b3;
}

.news-featured-copy h2 {
  font-size: 48px;
  font-weight: 400;
  line-height: 60px;
}

.news-readmore {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--primary);
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
  text-decoration: none;
}

.news-readmore img {
  width: 20px;
  height: 20px;
}

.news-tabs {
  margin-top: 80px;
  display: flex;
  justify-content: center;
  gap: 32px;
  border-bottom: 1px solid #d0d5dd;
}

.news-tabs button {
  padding: 0 8px 16px;
  border: 0;
  background: transparent;
  color: #344054;
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
}

.news-tabs button.is-active {
  color: var(--text);
  box-shadow: inset 0 -3px 0 var(--primary);
}

.news-grid {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 20px;
}

.news-grid-3 {
  margin-top: 0;
}

.news-card img {
  height: 277px;
  object-fit: cover;
  border-radius: 16px;
}

.news-card .news-meta {
  margin-top: 16px;
  font-size: 12px;
  line-height: 16px;
}

.news-card h3 {
  margin-top: 8px;
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
}

.news-card p {
  margin-top: 8px;
  font-size: 16px;
  line-height: 24px;
}

.news-pagination {
  margin-top: 80px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
}

.news-page-button,
.news-page-numbers button {
  height: 40px;
  border: 1px solid #d0d5dd;
  border-radius: 8px;
  background: #fff;
  color: #475467;
  font-size: 14px;
  line-height: 20px;
}

.news-page-button {
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.news-page-next {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
}

.news-page-numbers {
  display: flex;
  gap: 2px;
}

.news-page-numbers button {
  width: 40px;
  border-color: transparent;
}

.news-page-numbers button.is-active {
  background: #e4e7ec;
  border-radius: 999px;
  color: var(--text);
}

.post-shell {
  padding: 64px 32px 128px;
}

.post-breadcrumb {
  color: #667085;
  font-size: 16px;
  line-height: 24px;
}

.post-breadcrumb span {
  margin: 0 6px;
}

.post-shell h1 {
  max-width: 900px;
  margin: 40px 0;
  color: var(--text);
  font-size: 48px;
  font-weight: 400;
  line-height: 60px;
}

.post-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.post-author {
  display: flex;
  align-items: center;
  gap: 11px;
}

.post-author img {
  width: 40px;
  height: 40px;
  border: 1px solid #d0d5dd;
  border-radius: 999px;
  object-fit: cover;
}

.post-author p {
  margin: 0 0 4px;
  color: #475467;
  font-size: 12px;
  line-height: 16px;
}

.post-author strong {
  color: var(--text);
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
}

.post-hero-image {
  margin-top: 40px;
  overflow: hidden;
  border-radius: 24px;
}

.post-content-layout {
  margin-top: 96px;
  display: grid;
  grid-template-columns: 361px 1fr;
  gap: 96px;
}

.post-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.post-share p,
.post-toc h2 {
  margin: 0 0 12px;
  color: var(--text);
}

.post-share-list {
  display: flex;
  gap: 12px;
}

.post-share-list span {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #e4e7ec;
  color: #475467;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
}

.post-toc a {
  display: block;
  margin-top: 8px;
  color: #475467;
  font-size: 16px;
  line-height: 24px;
  text-decoration: none;
}

.post-article {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.post-lead {
  color: var(--text);
  font-size: 18px;
  font-style: italic;
  font-weight: 600;
  line-height: 28px;
}

.post-article h2 {
  font-size: 36px;
  font-weight: 400;
  line-height: 44px;
}

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

.post-article p {
  font-size: 16px;
  line-height: 24px;
}

.post-inline-image {
  margin: 24px 0 0;
}

.post-inline-image img {
  border-radius: 24px;
}

.post-inline-image figcaption {
  margin-top: 8px;
  color: #667085;
  font-size: 12px;
  line-height: 16px;
  text-align: center;
}

.post-article blockquote {
  margin: 0;
  padding: 0 0 0 24px;
  border-left: 2px solid var(--primary);
  color: #667085;
  font-size: 16px;
  font-style: italic;
  line-height: 24px;
}

.post-related {
  margin-top: 160px;
}

.post-related-head {
  margin-bottom: 40px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.post-related h2 {
  font-size: 48px;
  font-weight: 400;
  line-height: 60px;
}

.solution-hero .solution-shell {
  position: relative;
  z-index: 1;
  text-align: center;
}

.solution-problem > .solution-shell > p:last-of-type {
  margin: 16px 0 0;
  color: var(--text);
  font-size: 48px;
  line-height: 60px;
  text-align: center;
}

/* —— Page polish / scoped overrides —— */

/**
 * Blog list + post detail — Figma nodes 3860:1761, 4055:1975, 3870:2951, 4055:2430
 * Loaded via BlogAsset; scoped under .news-page / .post-page shells.
 */

/* —— Blog list (desktop refinements) —— */

.news-page .news-main {
  background: var(--bg);
}

.news-page .news-hero-section {
  padding: 80px 32px 128px;
}

.news-page .news-shell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 80px;
}

.news-page .news-hero-section h1 {
  width: 100%;
  margin: 0;
  color: var(--text);
  font-size: 48px;
  font-weight: 400;
  line-height: 60px;
  text-align: center;
}

.news-page .news-featured {
  width: 100%;
  margin-top: 0;
  display: grid;
  grid-template-columns: minmax(0, 58%) minmax(0, 42%);
  gap: 40px;
  align-items: center;
}

.news-page .news-featured-media,
.news-page .news-featured-copy {
  min-width: 0;
}

.news-page .news-featured-media {
  aspect-ratio: 600 / 400;
  border-radius: 16px;
  overflow: hidden;
}

.news-page .news-featured-media a {
  display: block;
  width: 100%;
  height: 100%;
}

.news-page .news-featured-media img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
}

.news-page .news-featured-copy {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  max-width: none;
  padding: 24px 0;
  overflow: hidden;
}

.news-page .news-featured-copy .news-meta {
  font-size: 16px;
  line-height: 24px;
}

.news-page .news-featured-copy .news-meta span:not(.news-category):not(.news-dot) {
  font-size: 14px;
  line-height: 20px;
}

.news-page .news-featured-copy h2 {
  font-size: 36px;
  font-weight: 500;
  line-height: 44px;
  overflow-wrap: anywhere;
}

.news-page .news-featured-copy h2 a {
  color: inherit;
  text-decoration: none;
}

.news-page .news-featured-copy h2 a:hover {
  color: var(--primary);
}

.news-page .news-featured-copy p {
  max-width: none;
  font-size: 18px;
  line-height: 28px;
}

.news-page .news-readmore {
  align-self: flex-start;
}

.news-page .news-readmore .gt-fa {
  font-size: 20px;
  line-height: 1;
}

.news-page .news-tabs {
  width: 100%;
  margin-top: 0;
  justify-content: center;
  gap: 32px;
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.news-page .news-tabs::-webkit-scrollbar {
  display: none;
}

.news-page .news-tabs button,
.news-page .news-tabs a {
  flex-shrink: 0;
  padding: 0 8px 16px;
  border: 0;
  background: transparent;
  color: var(--text-2);
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
  text-decoration: none;
  white-space: nowrap;
}

.news-page .news-tabs button.is-active,
.news-page .news-tabs a.is-active {
  color: var(--text);
  box-shadow: inset 0 -3px 0 var(--primary);
}

.news-page .news-grid {
  width: 100%;
  margin-top: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px 20px;
}

.news-page .news-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.news-page .news-card-media {
  display: block;
  aspect-ratio: 416 / 277;
  border-radius: 16px;
  overflow: hidden;
}

.news-page .news-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
}

.news-page .news-card .news-meta {
  margin-top: 0;
  font-size: 12px;
  line-height: 16px;
}

.news-page .news-card h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
}

.news-page .news-card h3 a {
  color: inherit;
  text-decoration: none;
}

.news-page .news-card h3 a:hover {
  color: var(--primary);
}

.news-page .news-card p {
  margin: 0;
  font-size: 16px;
  line-height: 24px;
  color: var(--text-3);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

.news-page .news-pagination {
  width: 100%;
  margin-top: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
}

.news-page .news-pagination .pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.news-page .news-pagination .pagination > li {
  list-style: none;
}

.news-page .news-pagination .pagination > li > a,
.news-page .news-pagination .pagination > li > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--text-3);
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  text-decoration: none;
}

.news-page .news-pagination .pagination > li.active > a,
.news-page .news-pagination .pagination > li.active > span {
  background: #e4e7ec;
  border-color: transparent;
  border-radius: 999px;
  color: var(--text);
  font-weight: 500;
}

.news-page .news-pagination .pagination > li.disabled > span {
  opacity: 0.5;
  cursor: not-allowed;
}

.news-page .news-pagination .pagination > li.news-page-next > a {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
}

.news-page .news-pagination .pagination > li.news-page-prev > a,
.news-page .news-pagination .pagination > li.news-page-prev > span {
  min-width: 107px;
}

/* —— Post detail (desktop refinements) —— */

.post-page .post-main {
  background: var(--bg);
}

.post-page .post-shell {
  width: min(1288px, calc(100% - 64px));
  margin: 0 auto;
  padding: 64px 0 128px;
}

.post-page .post-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  color: #667085;
  font-size: 16px;
  line-height: 24px;
}

.post-page .post-breadcrumb a {
  color: inherit;
  text-decoration: none;
}

.post-page .post-breadcrumb a:hover {
  color: var(--primary);
}

.post-page .post-breadcrumb span {
  margin: 0;
}

.post-page .post-shell > h1 {
  max-width: 900px;
  margin: 40px 0;
  color: var(--text);
  font-size: 48px;
  font-weight: 400;
  line-height: 60px;
}

.post-page .post-topbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px 24px;
}

.post-page .post-hero-image {
  margin-top: 40px;
  border-radius: 24px;
  overflow: hidden;
}

.post-page .post-hero-image img {
  width: 100%;
  aspect-ratio: 1288 / 600;
  object-fit: cover;
  border-radius: 24px;
}

.post-page .post-content-layout {
  margin-top: 96px;
  display: grid;
  grid-template-columns: minmax(280px, 361px) minmax(0, 1fr);
  gap: 96px;
  align-items: start;
}

.post-page .post-sidebar {
  position: sticky;
  top: 96px;
}

.post-page .post-share p,
.post-page .post-toc h2 {
  margin: 0 0 12px;
  color: var(--text);
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
}

.post-page .post-toc .toc-wrapper {
  border: 0;
  background: transparent;
  padding: 0;
  margin: 0;
}

.post-page .post-toc .toc-title {
  display: none;
}

.post-page .post-toc .ai-toc,
.post-page .post-toc .ai-sub-toc {
  list-style: none;
  margin: 0;
  padding: 0;
}

.post-page .post-toc .ai-sub-toc {
  padding-left: 12px;
}

.post-page .post-toc a {
  display: block;
  margin-top: 8px;
  color: var(--text-3);
  font-size: 16px;
  line-height: 24px;
  text-decoration: none;
}

.post-page .post-toc a:hover {
  color: var(--primary);
}

.post-page .post-share-list .social-share {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0;
}

.post-page .post-share-list .social-share a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  background: #e4e7ec;
  color: var(--text-3);
  text-decoration: none;
}

.post-page .post-article {
  min-width: 0;
}

.post-page .post-lead {
  margin: 0;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  font-size: 18px;
  font-style: italic;
  font-weight: 600;
  line-height: 28px;
}

.post-page .post-article img {
  max-width: 100%;
  height: auto;
  border-radius: 16px;
}

.post-page .post-article .table-responsive {
  overflow-x: auto;
  margin: 1.5rem 0;
}

.post-page .post-article h2 {
  font-size: 36px;
  font-weight: 400;
  line-height: 44px;
}

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

.post-page .post-article p {
  font-size: 16px;
  line-height: 24px;
  color: var(--text);
}

.post-page .post-article blockquote {
  margin: 0;
  padding: 16px 16px 16px 32px;
  border-left: 3px solid var(--primary);
  color: var(--text);
  font-size: 16px;
  font-style: italic;
  line-height: 24px;
}

.post-page .post-article-source {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-size: 14px;
  line-height: 20px;
}

.post-page .post-article-tags {
  margin-top: 1.5rem;
}

.post-page .post-related {
  margin-top: 160px;
}

.post-page .post-related-head {
  margin-bottom: 40px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
}

.post-page .post-related h2 {
  margin: 0;
  font-size: 48px;
  font-weight: 400;
  line-height: 60px;
}

.post-page .post-related .news-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.post-page .post-related .news-card {
  gap: 16px;
}

.post-page .post-related .news-card p {
  font-size: 16px;
  line-height: 24px;
  -webkit-line-clamp: 2;
}

/* —— Mobile ≤768 —— */

@media (max-width: 768px) {
  .news-page .news-hero-section {
    padding: 40px 16px 64px;
  }

  .news-page .news-shell {
    gap: 40px;
    width: calc(100% - 32px);
  }

  .news-page .news-hero-section h1 {
    font-size: 36px;
    line-height: 44px;
  }

  .news-page .news-featured {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .news-page .news-featured-media {
    width: 100%;
    max-width: 100%;
  }

  .news-page .news-featured-copy {
    padding: 0;
    max-width: none;
  }

  .news-page .news-featured-copy h2 {
    font-size: 24px;
    font-weight: 500;
    line-height: 32px;
  }

  .news-page .news-featured-copy p {
    max-width: none;
    font-size: 14px;
    line-height: 20px;
  }

  .news-page .news-tabs {
    justify-content: flex-start;
    gap: 16px 32px;
    padding-bottom: 0;
  }

  .news-page .news-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .news-page .news-card {
    gap: 16px;
  }

  .news-page .news-card h3 {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .news-page .news-card p {
    font-size: 14px;
    line-height: 20px;
    -webkit-line-clamp: 3;
  }

  .news-page .news-pagination {
    flex-wrap: wrap;
  }

  .news-page .news-pagination .pagination {
    width: 100%;
    justify-content: center;
  }

  .post-page .post-shell {
    width: calc(100% - 32px);
    padding: 40px 0 64px;
  }

  .post-page .post-shell > h1 {
    margin: 24px 0;
    font-size: 36px;
    line-height: 44px;
  }

  .post-page .post-topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .post-page .post-hero-image {
    margin-top: 24px;
    border-radius: 16px;
  }

  .post-page .post-hero-image img {
    aspect-ratio: 358 / 200;
    border-radius: 16px;
  }

  .post-page .post-content-layout {
    margin-top: 40px;
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .post-page .post-sidebar {
    position: static;
    order: 2;
  }

  .post-page .post-article {
    order: 1;
  }

  .post-page .post-lead {
    font-size: 16px;
    line-height: 24px;
    font-weight: 500;
  }

  .post-page .post-article h2 {
    font-size: 20px;
    line-height: 30px;
  }

  .post-page .post-article h3 {
    font-size: 18px;
    line-height: 28px;
  }

  .post-page .post-article p {
    font-size: 14px;
    line-height: 20px;
  }

  .post-page .post-article blockquote {
    padding-left: 16px;
    border-left-width: 3px;
    font-size: 16px;
    line-height: 24px;
  }

  .post-page .post-related {
    margin-top: 40px;
  }

  .post-page .post-related-head {
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 24px;
  }

  .post-page .post-related h2 {
    font-size: 36px;
    line-height: 44px;
  }

  .post-page .post-related .news-grid-3 {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .post-page .post-related .news-card h3 {
    white-space: normal;
  }
}

@media (max-width: 480px) {
  .news-page .news-hero-section h1,
  .post-page .post-shell > h1,
  .post-page .post-related h2 {
    font-size: 32px;
    line-height: 40px;
  }
}
