/* ===== BLOG UI FOUNDATION ===== */

.blog-main {
  background: #0c1a39;
  color: #fff;
}

.blog-section {
  position: relative;
  overflow: hidden;
  background: #0c1a39;
}

.blog-section__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
}

.blog-blob {
  position: absolute;
  width: 280px;
  height: 663px;
  border-radius: 140px / 332px;
  pointer-events: none;
  filter: blur(200px);
  background-image: linear-gradient(180deg, rgba(29, 80, 222, 0.26) 0%, rgba(159, 196, 255, 0.26) 100%);
  z-index: 0;
}

html.w-mod-js .blog-reveal {
  opacity: 0;
  transition: opacity 0.62s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

html.w-mod-js .blog-reveal.blog-reveal--delay-1 {
  transition-delay: 0.08s;
}

html.w-mod-js .blog-reveal.blog-reveal--delay-2 {
  transition-delay: 0.16s;
}

html.w-mod-js .blog-reveal.blog-reveal--delay-3 {
  transition-delay: 0.24s;
}

html.w-mod-js .blog-reveal.is-visible {
  opacity: 1;
}

@media (prefers-reduced-motion: no-preference) {
  html.w-mod-js .blog-reveal {
    transform: translate3d(0, 30px, 0) scale(0.985);
    transition:
      opacity 0.78s cubic-bezier(0.22, 1, 0.36, 1),
      transform 0.78s cubic-bezier(0.22, 1, 0.36, 1);
  }

  html.w-mod-js .blog-reveal.is-visible {
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  html.w-mod-js .blog-reveal {
    transform: none;
    transition: opacity 0.35s ease;
  }
}

.blog-shell {
  padding: 114px 0 100px;
}

.blog-shell.blog-shell--article {
  padding-top: 99px;
}

.blog-shell.blog-shell--author {
  padding-top: 99px;
}

.blog-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  text-align: center;
}

.blog-kicker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #3ce569;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.blog-title {
  margin: 0;
  color: #fff;
  font-size: 60px;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.6px;
}

.blog-title.blog-title--section {
  font-size: 48px;
  letter-spacing: -0.48px;
}

.blog-subtitle {
  max-width: 680px;
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: -0.16px;
}

.blog-search {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 450px;
  padding: 16px 24px;
  border-radius: 16px;
  background: linear-gradient(182deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.1) 100%);
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.blog-search svg,
.blog-search img {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.blog-search input {
  width: 100%;
  min-width: 0;
  color: #fff;
  font-size: 14px;
  line-height: 1.4;
  border: 0;
  outline: 0;
  background: transparent;
}

.blog-search input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.blog-filter-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 12px;
}

.blog-filter-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: linear-gradient(182deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.1) 100%);
  color: #fff;
  font-size: 14px;
  line-height: 1.4;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.blog-filter-chip:hover,
.blog-filter-chip:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.22);
}

.blog-filter-chip.is-active {
  border-color: rgba(60, 229, 105, 0.6);
  background: linear-gradient(182deg, rgba(60, 229, 105, 0.16) 0%, rgba(60, 229, 105, 0.1) 100%);
}

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

.blog-grid.blog-grid--tight {
  gap: 18px;
}

.blog-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  /* CSS grid already stretches items to match the tallest card in a row
     (align-items: stretch is the default). The previous explicit
     `min-height: 100%` interacted badly with `.blog-card__content {
     height: 100%; }` and left empty space at the bottom of shorter cards.
     Letting the card size naturally + pushing the author block down via
     `margin-top: auto` produces the intended layout. */
  padding: 0 0 24px;
  border-radius: 24px;
  overflow: hidden;
  background: linear-gradient(182deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.1) 100%);
  border: 1px solid rgba(255, 255, 255, 0.04);
  cursor: pointer;
  transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
}

.blog-card:hover,
.blog-card:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 24px 50px rgba(7, 15, 35, 0.22);
}

.blog-card__media-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1.56;
}

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

.blog-card__content {
  display: flex;
  flex-direction: column;
  gap: 14px;
  height: 100%;
  padding: 0 24px;
}

.blog-card__tags,
.blog-article-tags,
.blog-author-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.blog-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 20px;
  padding: 5px 9px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 11px;
  font-weight: 500;
  line-height: 1;
}

.blog-pill.tone-1 {
  color: #f1b15e;
  background: rgba(241, 177, 94, 0.1);
  border-color: rgba(241, 177, 94, 0.35);
}

.blog-pill.tone-2 {
  color: #86b6ff;
  background: rgba(99, 164, 255, 0.1);
  border-color: rgba(99, 164, 255, 0.35);
}

.blog-pill.tone-3 {
  color: #83e6ab;
  background: rgba(60, 229, 105, 0.1);
  border-color: rgba(60, 229, 105, 0.35);
}

.blog-card__title {
  margin: 0;
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.55;
}

.blog-card__excerpt {
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  line-height: 1.55;
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.blog-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 12px;
  line-height: 1.4;
}

.blog-card__divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
}

.blog-card__author {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
  /* Push the author block to the bottom of the flex column so the card
     fills grid-row height cleanly instead of leaving empty space beneath
     the author block when other cards in the row are taller (or when the
     card is alone in the row). */
  margin-top: auto;
}

.blog-card__author-image {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  object-fit: cover;
  flex-shrink: 0;
}

.blog-card__author-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.blog-card__author-name {
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
}

.blog-card__author-role {
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
  line-height: 1.3;
}

.blog-collection {
  display: flex;
  flex-direction: column;
  gap: 40px;
  margin-top: 60px;
}

.blog-collection__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  line-height: 1.4;
}

.blog-collection__footer strong {
  color: #fff;
  font-weight: 600;
}

.blog-pager {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.blog-select {
  min-width: 112px;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 14px;
  line-height: 1.4;
}

.blog-select option {
  color: #0c1a39;
}

.blog-pager__status {
  min-width: 94px;
  text-align: center;
}

.blog-pager__button,
.blog-icon-button {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}

.blog-pager__button:hover,
.blog-icon-button:hover,
.blog-pager__button:focus-visible,
.blog-icon-button:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.24);
}

.blog-pager__button[disabled] {
  opacity: 0.45;
  cursor: default;
  transform: none;
}

.blog-pager__button svg,
.blog-icon-button img {
  display: block;
}

.blog-empty {
  padding: 44px 32px;
  border-radius: 24px;
  text-align: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px dashed rgba(255, 255, 255, 0.16);
}

.blog-empty h3 {
  margin: 0 0 10px;
  font-size: 22px;
  line-height: 1.3;
}

.blog-empty p {
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  line-height: 1.7;
}

.blog-author-hero,
.blog-article-hero {
  position: relative;
  padding: 60px;
  border-radius: 40px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(182deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.05) 100%);
  backdrop-filter: blur(5px);
}

.blog-author-hero {
  display: flex;
  align-items: center;
  justify-content: center;
}

.blog-author-hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 540px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}

.blog-author-hero__image {
  width: 80px;
  height: 80px;
  border-radius: 999px;
  object-fit: cover;
}

.blog-author-hero__role {
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 20px;
  line-height: 1.4;
}

.blog-author-hero__bio {
  margin: 0;
  color: rgba(255, 255, 255, 0.5);
  font-size: 12px;
  line-height: 1.7;
}

.blog-social-row {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.blog-social-row:empty {
  display: none;
}

.blog-author-social-link {
  box-sizing: border-box;
  position: relative;
  isolation: isolate;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  border-radius: 8px;
  background: linear-gradient(181.66deg, rgba(255, 255, 255, 0.05) -0.48%, rgba(255, 255, 255, 0.05) 95.76%);
  backdrop-filter: blur(50px);
  -webkit-backdrop-filter: blur(50px);
  text-decoration: none;
  flex: 0 0 auto;
}

.blog-author-social-link::before {
  content: '';
  position: absolute;
  inset: 0.5px;
  padding: 1px;
  border-radius: 7.5px;
  background: radial-gradient(100% 100% at 50% 0%, rgba(255, 255, 255, 0.7) 0%, rgba(255, 255, 255, 0.2) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  pointer-events: none;
}

.blog-author-social-link img {
  position: relative;
  z-index: 1;
  display: block;
  flex-shrink: 0;
}

.blog-icon-button.is-success {
  border-color: rgba(60, 229, 105, 0.62);
  background: rgba(60, 229, 105, 0.16);
}

.blog-article-hero {
  display: grid;
  grid-template-columns: minmax(0, 540px) minmax(320px, 1fr);
  align-items: stretch;
  gap: 42px;
}

.blog-article-hero__copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.blog-article-hero__media {
  position: relative;
  min-height: 100%;
}

.blog-article-hero__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(270deg, rgba(12, 26, 57, 0) 0%, rgba(12, 26, 57, 0.15) 100%);
}

.blog-article-hero__image {
  width: 100%;
  height: 100%;
  min-height: 385px;
  object-fit: cover;
  border-radius: 28px;
}

.blog-article-meta {
  margin: 0;
  color: rgba(255, 255, 255, 0.5);
  font-size: 12px;
  line-height: 1.4;
}

.blog-article-author {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.blog-article-author img {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  object-fit: cover;
}

.blog-article-layout {
  display: grid;
  grid-template-columns: 370px minmax(0, 1fr);
  gap: 40px;
  align-items: start;
  margin-top: 60px;
}

.blog-article-aside {
  position: sticky;
  top: 110px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.blog-article-panel {
  padding: 32px;
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.blog-article-panel__eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
}

.blog-article-panel__divider {
  height: 1px;
  margin-bottom: 16px;
  background: rgba(255, 255, 255, 0.08);
}

.blog-article-toc {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.blog-article-toc a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 16px;
  line-height: 1.5;
  text-decoration: none;
}

.blog-article-toc a:hover,
.blog-article-toc a:focus-visible {
  color: #fff;
}

.blog-article-share {
  display: flex;
  align-items: center;
  gap: 16px;
}

.blog-article-share span {
  color: rgba(255, 255, 255, 0.7);
  font-size: 15px;
  line-height: 1.4;
}

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

.blog-article-intro,
.blog-article-copy {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.blog-article-intro p,
.blog-article-copy p,
.blog-article-copy li {
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  line-height: 1.75;
}

.blog-article-copy ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding-left: 20px;
}

.blog-article-copy ol {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding-left: 20px;
}

.blog-article-copy a {
  color: #3ce569;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.blog-article-copy code {
  padding: 2px 6px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 13px;
}

.blog-article-code {
  margin: 0;
  padding: 20px;
  overflow-x: auto;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  background: rgba(8, 14, 32, 0.72);
  color: rgba(255, 255, 255, 0.88);
  font-size: 13px;
  line-height: 1.7;
}

.blog-article-code code {
  padding: 0;
  background: transparent;
}

.blog-article-quote {
  margin: 0;
  padding: 24px 28px;
  border-left: 2px solid rgba(60, 229, 105, 0.9);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
}

.blog-article-quote p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 15px;
  line-height: 1.8;
}

.blog-article-section {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.blog-article-section h2 {
  margin: 0;
  color: #fff;
  font-size: 32px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.32px;
}

.blog-article-image {
  width: 100%;
  border-radius: 20px;
  object-fit: cover;
}

.blog-article-callout {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 32px;
  border-left: 2px solid #3ce569;
  border-radius: 20px;
  background: rgba(60, 229, 105, 0.1);
}

.blog-article-callout strong {
  color: #fff;
  font-size: 16px;
  line-height: 1.5;
}

.blog-article-callout p {
  margin: 0;
  color: rgba(255, 255, 255, 0.75);
  font-size: 14px;
  line-height: 1.7;
}

.blog-related {
  margin-top: 100px;
}

.blog-related__heading {
  margin: 0 0 40px;
  color: #fff;
  text-align: center;
  font-size: 48px;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.48px;
}

@media screen and (max-width: 991px) {
  .blog-shell,
  .blog-shell.blog-shell--article,
  .blog-shell.blog-shell--author {
    padding: 100px 0 80px;
  }

  .blog-title {
    font-size: 48px;
  }

  .blog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .blog-article-hero {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 32px;
  }

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

  .blog-article-aside {
    position: static;
    order: 2;
  }
}

@media screen and (max-width: 767px) {
  .blog-shell,
  .blog-shell.blog-shell--article,
  .blog-shell.blog-shell--author {
    padding: 84px 0 64px;
  }

  .blog-title,
  .blog-title.blog-title--section {
    font-size: 40px;
    line-height: 1.1;
    letter-spacing: -0.4px;
  }

  .blog-subtitle {
    font-size: 16px;
    line-height: 1.5;
  }

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

  .blog-author-hero,
  .blog-article-hero {
    padding: 24px 20px;
    border-radius: 24px;
  }

  .blog-author-hero__role {
    font-size: 16px;
  }

  .blog-collection {
    margin-top: 40px;
    gap: 28px;
  }

  .blog-collection__footer {
    flex-direction: column;
    align-items: stretch;
  }

  .blog-pager {
    justify-content: space-between;
  }

  .blog-article-layout {
    margin-top: 40px;
  }

  .blog-article-panel {
    padding: 24px;
    border-radius: 24px;
  }

  .blog-article-section h2 {
    font-size: 28px;
    line-height: 1.2;
    letter-spacing: -0.28px;
  }

  .blog-related {
    margin-top: 64px;
  }

  .blog-related__heading {
    margin-bottom: 28px;
    font-size: 32px;
    line-height: 1.1;
    letter-spacing: -0.32px;
  }
}

@media screen and (max-width: 479px) {
  .blog-hero {
    gap: 24px;
  }

  .blog-title,
  .blog-title.blog-title--section {
    font-size: 40px;
    line-height: 1.1;
  }

  .blog-search {
    padding: 14px 18px;
  }

  .blog-filter-list {
    justify-content: flex-start;
    gap: 6px;
  }

  .blog-filter-chip {
    padding: 10px 12px;
    font-size: 13px;
  }

  .blog-card {
    border-radius: 20px;
    padding-bottom: 20px;
  }

  .blog-card__content {
    padding: 0 20px;
  }

  .blog-card__title {
    font-size: 18px;
    line-height: 1.45;
  }

  .blog-article-hero__image {
    min-height: 220px;
  }

  .blog-article-layout {
    gap: 24px;
  }

  .blog-article-aside {
    display: none;
  }

  .blog-article-section {
    gap: 18px;
  }

  .blog-article-section h2 {
    font-size: 26px;
    line-height: 1.24;
  }

  .blog-author-hero__image {
    width: 60px;
    height: 60px;
  }

  .blog-author-hero__bio {
    font-size: 12px;
    line-height: 1.45;
  }

  .blog-select {
    min-width: 104px;
  }

  .blog-pager {
    gap: 8px;
  }

  .blog-pager__status {
    min-width: auto;
    flex: 1;
  }
}
