/* Blog pages: /blog/ index and article pages. Loaded after style.css. */

:root {
  --blog-surface: rgba(255, 255, 255, 0.04);
  --blog-surface-hover: rgba(255, 255, 255, 0.08);
  --blog-border: rgba(255, 255, 255, 0.1);
  --blog-border-strong: rgba(255, 255, 255, 0.2);
  --blog-muted: #9ca3af;
  --blog-text: #d4dbe6;
  --blog-divider: #262937;
  --blog-accent: #9554c7;
  --blog-accent-gradient: radial-gradient(268.91% 1164.23% at 93.17% 0%, #eb7b63 0%, #d45491 20.89%, #8554d4 51.22%, #4c3cce 77.55%);
  --blog-radius: 12px;
  --blog-shadow: 0px 70px 105px -48px rgba(25, 17, 41, 0.37);
}

/* style.css has no global image rule, so a wide image overflows its column. */
img {
  max-width: 100%;
}

/* Breadcrumbs */

.breadcrumbs {
  width: 100%;
  padding-top: 30px;
}

.breadcrumbs__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  list-style: none;
  font-weight: 400;
  font-size: 14px;
  line-height: 150%;
  color: var(--blog-muted);
}

.breadcrumbs__item:not(:last-child)::after {
  content: "/";
  margin-left: 8px;
  color: var(--blog-divider);
}

.breadcrumbs__link {
  color: var(--blog-muted);
  transition: 0.3s;
}

.breadcrumbs__link:hover,
.breadcrumbs__link:focus-visible {
  color: #ffffff;
}

.breadcrumbs__item[aria-current="page"] {
  color: #ffffff;
}

/* Blog index hero */

.blog-hero {
  width: 100%;
}

.blog-hero__wrap {
  width: 100%;
  max-width: 720px;
  padding: 60px 0 50px;
}

@media (max-width: 573px) {
  .blog-hero__wrap {
    padding: 35px 0 30px;
  }
}

.blog-hero__label {
  display: inline-block;
  font-weight: 600;
  font-size: 13px;
  line-height: 100%;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #ffffff;
  border: 1px solid var(--blog-accent);
  border-radius: 40px;
  padding: 9px 18px;
  margin-bottom: 24px;
}

.blog-hero__title {
  font-weight: 600;
  font-size: 55px;
  line-height: 115%;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin-bottom: 24px;
}

@media (max-width: 1023px) {
  .blog-hero__title {
    font-size: 45px;
  }
}

@media (max-width: 573px) {
  .blog-hero__title {
    font-size: 30px;
    margin-bottom: 18px;
  }
}

.blog-hero__text {
  font-weight: 400;
  font-size: 18px;
  line-height: 160%;
  color: var(--blog-muted);
}

@media (max-width: 1199px) {
  .blog-hero__text {
    font-size: 16px;
  }
}

@media (max-width: 573px) {
  .blog-hero__text {
    font-size: 15px;
  }
}

/* Article grid */

.blog-grid {
  width: 100%;
  padding-bottom: 120px;
}

@media (max-width: 573px) {
  .blog-grid {
    padding-bottom: 70px;
  }
}

.blog-grid__title {
  font-weight: 600;
  font-size: 32px;
  line-height: 125%;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin-bottom: 30px;
}

@media (max-width: 573px) {
  .blog-grid__title {
    font-size: 24px;
    margin-bottom: 20px;
  }
}

.blog-grid__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  list-style: none;
}

@media (max-width: 1023px) {
  .blog-grid__list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 650px) {
  .blog-grid__list {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

.blog-card {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  background: var(--blog-surface);
  border: 1px solid var(--blog-border);
  border-radius: var(--blog-radius);
  box-shadow: var(--blog-shadow);
  backdrop-filter: blur(73px);
  overflow: hidden;
  transition: 0.3s;
}

.blog-card:hover {
  background: var(--blog-surface-hover);
  border-color: var(--blog-border-strong);
  transform: translateY(-2px);
}

.blog-card:focus-within {
  border-color: var(--blog-accent);
}

.blog-card__cover {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--blog-accent-gradient);
}

/* No absolute positioning: on a browser without aspect-ratio support the image
   falls back to its natural height instead of escaping the card. */
.blog-card__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-card__tag {
  align-self: flex-start;
  margin-bottom: 16px;
  font-weight: 600;
  font-size: 12px;
  line-height: 100%;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffffff;
  border: 1px solid var(--blog-accent);
  border-radius: 40px;
  padding: 8px 14px;
}

.blog-card__body {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  padding: 28px;
}

@media (max-width: 1199px) {
  .blog-card__body {
    padding: 22px;
  }
}

.blog-card__title {
  font-weight: 600;
  font-size: 22px;
  line-height: 130%;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin-bottom: 14px;
}

@media (max-width: 573px) {
  .blog-card__title {
    font-size: 20px;
  }
}

.blog-card__link::after {
  content: "";
  position: absolute;
  inset: 0;
}

.blog-card__excerpt {
  font-weight: 300;
  font-size: 14px;
  line-height: 160%;
  color: var(--blog-muted);
  margin-bottom: 24px;
}

.blog-card__meta {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding-top: 18px;
  border-top: 1px solid var(--blog-divider);
  font-weight: 400;
  font-size: 13px;
  line-height: 100%;
  color: var(--blog-muted);
}

.blog-card__meta span::before {
  content: "\2022";
  margin-right: 8px;
}

/* Article page */

.article {
  width: 100%;
}

/* Sticky sidebar needs a scrolling viewport, not the clipped .main from style.css. */
.main {
  overflow: visible;
}

/* script.js paints the header background only once jQuery has loaded from the CDN,
   so refreshing mid-page shows a frame of text through a transparent header.
   The header itself must therefore be fully opaque from the first paint - any
   translucent band lets text show through. The seam against the page gradient is
   softened by fading *below* the header instead, which never reveals content. */
.header {
  background: #0b1217;
}

.header::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 32px;
  background: linear-gradient(180deg, #0b1217 0%, rgba(11, 18, 23, 0) 100%);
  pointer-events: none;
}

.article__wrap {
  width: 100%;
  max-width: 1140px;
  padding: 40px 0 120px;
}

@media (max-width: 573px) {
  .article__wrap {
    padding: 30px 0 70px;
  }
}

.article__layout {
  display: grid;
  grid-template-columns: minmax(0, 800px) 280px;
  gap: 60px;
  align-items: start;
}

@media (max-width: 1023px) {
  .article__layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  /* Below the sidebar breakpoint the contents list returns to the top of the article. */
  .article__aside {
    order: -1;
    margin-top: 40px;
  }
}

/* The fixed header is 145px tall on desktop; the sidebar must clear it. */
.article__aside {
  position: sticky;
  top: 165px;
}

@media (max-width: 1023px) {
  .article__aside {
    position: static;
  }
}

/* Pages with no sidebar (legal pages) keep the reading column narrow. */
.article__wrap--narrow {
  max-width: 800px;
}

.article__header {
  max-width: 800px;
}

.article__figure {
  max-width: 800px;
  margin: 36px 0 0;
  border: 1px solid var(--blog-border);
  border-radius: var(--blog-radius);
  overflow: hidden;
}

.article__figure img {
  display: block;
  width: 100%;
  height: auto;
}

.article__title {
  font-weight: 600;
  font-size: 48px;
  line-height: 115%;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin-bottom: 24px;
}

@media (max-width: 1023px) {
  .article__title {
    font-size: 38px;
  }
}

@media (max-width: 573px) {
  .article__title {
    font-size: 28px;
    margin-bottom: 18px;
  }
}

.article__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding-bottom: 34px;
  border-bottom: 1px solid var(--blog-divider);
  font-weight: 400;
  font-size: 14px;
  line-height: 100%;
  color: var(--blog-muted);
}

.article__meta > *:not(:first-child)::before {
  content: "\2022";
  margin-right: 8px;
}

.article__body {
  padding-top: 40px;
}

.article__body h2 {
  font-weight: 600;
  font-size: 32px;
  line-height: 125%;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin: 56px 0 20px;
  scroll-margin-top: 165px;
}

@media (max-width: 573px) {
  .article__body h2 {
    font-size: 24px;
    margin: 40px 0 16px;
  }
}

.article__body h3 {
  font-weight: 600;
  font-size: 22px;
  line-height: 130%;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin: 36px 0 16px;
}

@media (max-width: 573px) {
  .article__body h3 {
    font-size: 19px;
  }
}

.article__body > *:first-child {
  margin-top: 0;
}

.article__body p {
  font-weight: 400;
  font-size: 17px;
  line-height: 175%;
  color: var(--blog-text);
  margin-bottom: 20px;
}

@media (max-width: 573px) {
  .article__body p {
    font-size: 15px;
  }
}

.article__body a {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--blog-accent);
  transition: 0.3s;
}

.article__body a:hover,
.article__body a:focus-visible {
  text-decoration-color: #ffffff;
}

.article__body strong {
  color: #ffffff;
  font-weight: 600;
}

.article__list {
  list-style: none;
  margin-bottom: 24px;
}

.article__list li {
  position: relative;
  padding-left: 26px;
  font-weight: 400;
  font-size: 17px;
  line-height: 175%;
  color: var(--blog-text);
  margin-bottom: 12px;
}

@media (max-width: 573px) {
  .article__list li {
    font-size: 15px;
    padding-left: 22px;
  }
}

.article__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blog-accent-gradient);
}

/* Callouts */

.callout {
  background: var(--blog-surface);
  border: 1px solid var(--blog-border);
  border-radius: var(--blog-radius);
  box-shadow: var(--blog-shadow);
  backdrop-filter: blur(73px);
  padding: 32px;
  margin-bottom: 32px;
}

@media (max-width: 573px) {
  .callout {
    padding: 22px;
  }
}

.callout--accent {
  border-color: var(--blog-accent);
}

.callout__title {
  font-weight: 600;
  font-size: 13px;
  line-height: 100%;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #ffffff;
  margin-bottom: 18px;
}

.callout p:last-child,
.callout .article__list {
  margin-bottom: 0;
}

.note {
  padding: 22px 26px;
  margin-bottom: 28px;
  background: var(--blog-surface);
  border-left: 3px solid var(--blog-accent);
  border-radius: 0 var(--blog-radius) var(--blog-radius) 0;
}

.note p {
  margin-bottom: 0;
}

/* Table of contents */

.toc {
  background: var(--blog-surface);
  border: 1px solid var(--blog-border);
  border-radius: var(--blog-radius);
  padding: 28px;
}

@media (max-width: 1023px) {
  .toc {
    margin-bottom: 40px;
  }
}

@media (max-width: 573px) {
  .toc {
    padding: 22px;
  }
}

.toc__list {
  list-style: none;
  counter-reset: toc;
}

.toc__list li {
  counter-increment: toc;
  margin-bottom: 10px;
}

.toc__list li:last-child {
  margin-bottom: 0;
}

.toc__list li::before {
  content: counter(toc, decimal-leading-zero);
  margin-right: 12px;
  font-weight: 600;
  font-size: 13px;
  color: var(--blog-accent);
}

.toc__list a {
  font-weight: 400;
  font-size: 15px;
  line-height: 150%;
  color: var(--blog-muted);
  text-decoration: none;
  transition: 0.3s;
}

.toc__list a:hover,
.toc__list a:focus-visible {
  color: #ffffff;
}

/* Comparison table */

.article-table {
  width: 100%;
  overflow-x: auto;
  margin-bottom: 32px;
  border: 1px solid var(--blog-border);
  border-radius: var(--blog-radius);
}

.article-table table {
  width: 100%;
  min-width: 780px;
  border-collapse: collapse;
  text-align: left;
}

.article-table th,
.article-table td {
  padding: 16px 15px;
  border-bottom: 1px solid var(--blog-divider);
  font-size: 14px;
  line-height: 155%;
  vertical-align: top;
}

.article-table thead th {
  font-weight: 600;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.04);
  white-space: nowrap;
}

.article-table tbody th {
  font-weight: 600;
  color: #ffffff;
}

.article-table tbody td {
  font-weight: 300;
  color: var(--blog-muted);
}

.article-table tbody tr:last-child th,
.article-table tbody tr:last-child td {
  border-bottom: none;
}

.article-table tbody tr:hover th,
.article-table tbody tr:hover td {
  background: rgba(255, 255, 255, 0.03);
}

/* FAQ accordion reused from the home page, scoped to the narrow article column */

.article__body .faq-items::before,
.article__body .faq-item::before {
  width: 100%;
}

.article__body .faq-item__top h3 {
  margin: 0 20px 0 0;
}

/* Keyboard focus */

.blog-card__link:focus-visible,
.breadcrumbs__link:focus-visible,
.toc__list a:focus-visible,
.toc__list a:focus-visible {
  outline: 2px solid var(--blog-accent);
  outline-offset: 3px;
}
