/* Article-specific cover. Load after stx-site.css; all overrides are scoped. */
.stb-article-page > .stb-article-root {
  display: block;
  min-width: 0;
  margin: 0;
}

.stb-article-page .stb-cover {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin: 0;
  padding: 24px 0 38px;
  color: #fff;
  text-align: left;
  background:
    radial-gradient(ellipse at 83% 5%, rgba(34, 211, 238, .28), transparent 42%),
    radial-gradient(ellipse at 92% 85%, rgba(117, 106, 238, .4), transparent 42%),
    radial-gradient(ellipse at 4% 14%, rgba(34, 211, 238, .18), transparent 30%),
    radial-gradient(ellipse at 49% 100%, rgba(117, 106, 238, .2), transparent 45%),
    linear-gradient(125deg, #0c0b22, #16143a);
}

.stb-article-page .stb-cover::before {
  position: absolute;
  z-index: 0;
  inset: 0;
  content: "";
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 25%, transparent 90%);
  mask-image: radial-gradient(ellipse at center, #000 25%, transparent 90%);
}

.stb-article-page .stb-cover > .w {
  position: relative;
  z-index: 1;
}

.stb-article-page .stb-cover-path {
  margin: 0 0 24px;
  color: #e6e3ff;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.7;
}

.stb-article-page .stb-cover-crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.stb-article-page .stb-cover-crumbs > li {
  display: flex;
  align-items: baseline;
  min-width: 0;
  max-width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow-wrap: anywhere;
}

.stb-article-page .stb-cover-crumbs > li::before,
.stb-article-page .stb-cover-crumbs > li::after {
  content: none;
}

.stb-article-page .stb-cover-crumbs > li + li::before {
  position: static;
  display: inline-block;
  flex: 0 0 auto;
  margin: 0 12px;
  color: #aaa5cd;
  content: "/";
}

.stb-article-page .stb-cover-crumbs a {
  min-width: 0;
  color: #e6e3ff;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.stb-article-page .stb-cover-crumbs > li:last-child,
.stb-article-page .stb-cover-crumbs > li:last-child a {
  color: #d3ceff;
}

.stb-article-page .stb-cover-crumbs a:hover {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.stb-article-page .stb-cover-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(330px, 26vw, 350px);
  gap: clamp(36px, 4vw, 64px);
  align-items: center;
  min-width: 0;
}

.stb-article-page .stb-cover-copy {
  min-width: 0;
  padding: 8px 0;
}

.stb-article-page .stb-cover-category {
  max-width: 100%;
  margin: 0 0 18px;
  padding: 7px 16px;
  border: 1px solid rgba(198, 226, 255, .38);
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(110deg, #54439c, #12596d);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.6;
  text-transform: none;
  letter-spacing: .025em;
  white-space: normal;
  overflow-wrap: anywhere;
}

.stb-article-page .stb-cover-category:hover {
  color: #fff;
  border-color: #b9ecf5;
}

.stb-article-page .stb-cover-title {
  max-width: 20em;
  margin: 0 0 20px;
  padding: 0;
  color: #fff;
  font-size: clamp(36px, 3.3vw, 44px);
  font-weight: 800;
  line-height: 1.38;
  letter-spacing: .015em;
  text-transform: none;
  text-shadow: 0 4px 24px rgba(5, 5, 22, .25);
  word-break: normal;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

.stb-article-page .stb-cover-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  align-items: baseline;
  margin: 0 0 16px;
  color: #f5f4ff;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.8;
  overflow-wrap: anywhere;
}

.stb-article-page .stb-cover-meta > * {
  min-width: 0;
  max-width: 100%;
}

.stb-article-page .stb-cover-meta a {
  color: #f5f4ff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.stb-article-page .stb-cover-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.stb-article-page .stb-cover-tags > li {
  min-width: 0;
  max-width: 100%;
  margin: 0;
  padding: 5px 12px;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, .08);
  font-size: 12px;
  line-height: 1.7;
  list-style: none;
  overflow-wrap: anywhere;
}

.stb-article-page .stb-cover-tags > li::before,
.stb-article-page .stb-cover-tags > li::after {
  content: none;
}

.stb-article-page .stb-cover-tags a {
  color: #fff;
  text-decoration: none;
}

.stb-article-page .stb-cover-tags a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/*
 * The original key visual is 1200 x 500 with baked-in text on the left.
 * A 420 / 500 viewport plus a right-anchored, full-height image shows exactly
 * x = 780..1200 (the rightmost 35%), without editing the source image.
 * Keep this geometry: object-fit: cover on a 100%-wide image would show text.
 */
.stb-article-page .stb-cover-art {
  position: relative;
  width: 100%;
  min-width: 0;
  aspect-ratio: .84;
  overflow: hidden;
  border-radius: 28px;
  background: #14132f;
  box-shadow: 0 20px 48px rgba(5, 5, 22, .24);
}

.stb-article-page .stb-cover-image {
  position: absolute;
  top: 0;
  right: 0;
  left: auto;
  display: block;
  width: calc(100% / 0.35);
  height: 100%;
  min-width: 0;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  opacity: 1;
  object-fit: fill;
  transform: none;
}

.stb-article-page .stb-cover a:focus-visible {
  outline: 3px solid #ffbf47;
  outline-offset: 4px;
}

/* Only tighten the body-to-cover gap; preserve the original body/sidebar. */
.stb-article-page > .stb-article-root > .w.stb-wrap {
  padding-top: 40px;
}

.stb-article-page .stb-cover--text-only {
  padding-bottom: 36px;
}

.stb-article-page .stb-cover--text-only .stb-cover-main {
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
}

.stb-article-page .stb-cover--text-only .stb-cover-copy {
  padding: 4px 0;
}

.stb-article-page .stb-cover--text-only .stb-cover-art {
  display: none;
}

@media (max-width: 991px) {
  .stb-article-page .stb-cover-main {
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 28px;
  }

  .stb-article-page .stb-cover-title {
    font-size: 34px;
  }
}

@media (max-width: 767px) {
  .stb-article-page .stb-cover {
    padding: 20px 0 30px;
  }

  .stb-article-page .stb-cover-path {
    margin-bottom: 20px;
    font-size: 11px;
  }

  .stb-article-page .stb-cover-crumbs > li + li::before {
    margin-right: 9px;
    margin-left: 9px;
  }

  .stb-article-page .stb-cover-main {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .stb-article-page .stb-cover-copy {
    padding: 0;
  }

  .stb-article-page .stb-cover-category {
    margin-bottom: 14px;
    padding: 6px 13px;
    font-size: 12px;
  }

  .stb-article-page .stb-cover-title {
    margin-bottom: 16px;
    font-size: clamp(26px, 6.4vw, 34px);
    line-height: 1.45;
    letter-spacing: .01em;
  }

  .stb-article-page .stb-cover-meta {
    gap: 4px 14px;
    margin-bottom: 14px;
    font-size: 12px;
  }

  .stb-article-page .stb-cover-tags {
    gap: 6px;
  }

  .stb-article-page .stb-cover-tags > li {
    padding: 4px 10px;
    font-size: 11px;
  }

  .stb-article-page .stb-cover-art {
    justify-self: center;
    width: clamp(180px, 45vw, 210px);
    max-width: 100%;
    border-radius: 22px;
  }

  .stb-article-page > .stb-article-root > .w.stb-wrap {
    padding-top: 32px;
  }

  .stb-article-page .stb-cover--text-only {
    padding-bottom: 28px;
  }
}

/* The cover is deliberately static: no motion or transitions are introduced. */
