/* Transformation Thread collection identity and publication layout */
.anchor-sentinel {
  position: relative;
  display: block;
  height: 0;
  overflow: hidden;
  scroll-margin-top: 96px;
}

/* The Transformation Thread identity is a single orange editorial rail.
   It is deliberately theme-neutral so the Blog band can switch between
   light and dark without redesigning the component. */
.thread-blog {
  --thread-accent: #f27907;
  --thread-rail: rgba(242, 121, 7, 0.92);
  --thread-rail-glow: rgba(242, 121, 7, 0.22);
  min-height: auto;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(30px, 5vh, 58px) 0 clamp(42px, 6vh, 70px);
}

.thread-blog[data-theme="light"] {
  --thread-surface: rgba(255, 255, 255, 0.92);
  --thread-card: #ffffff;
  --thread-featured:
    linear-gradient(135deg, rgba(242, 121, 7, 0.045), rgba(18, 59, 255, 0.055)),
    #ffffff;
  --thread-border: rgba(18, 59, 255, 0.14);
  --thread-ink: var(--text);
  --thread-muted: var(--muted);
  --thread-chip-bg: rgba(242, 121, 7, 0.07);
  --thread-chip-border: rgba(242, 121, 7, 0.24);
  --thread-chip-ink: #8b4808;
  --thread-shadow: 0 22px 60px rgba(16, 23, 34, 0.10);
  background: var(--corp-light-band);
  color: var(--thread-ink);
}

.thread-blog[data-theme="dark"] {
  --thread-surface: rgba(10, 16, 29, 0.78);
  --thread-card: rgba(12, 19, 32, 0.82);
  --thread-featured:
    linear-gradient(135deg, rgba(242, 121, 7, 0.11), rgba(18, 59, 255, 0.16)),
    rgba(16, 22, 40, 0.80);
  --thread-border: rgba(255, 255, 255, 0.14);
  --thread-ink: #ffffff;
  --thread-muted: rgba(255, 255, 255, 0.76);
  --thread-chip-bg: rgba(242, 121, 7, 0.12);
  --thread-chip-border: rgba(242, 121, 7, 0.34);
  --thread-chip-ink: #ffc286;
  --thread-shadow: 0 30px 90px rgba(0, 0, 0, 0.35);
  background: var(--corp-dark-band);
  color: var(--thread-ink);
}

.thread-blog .container {
  width: min(100% - 48px, 1180px);
  margin: 0 auto;
}

.thread-blog-showcase {
  display: grid;
  grid-template-columns: minmax(210px, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(20px, 3vw, 36px);
  align-items: start;
  width: 100%;
  margin: 0;
  padding: 0;
  overflow: visible;
  border: 1px solid var(--thread-border);
  background: var(--thread-surface);
  box-shadow: var(--thread-shadow);
}

.thread-blog[data-theme="light"] .thread-blog-masthead,
.thread-blog[data-theme="dark"] .thread-blog-masthead {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding: clamp(20px, 2.5vw, 30px) 22px clamp(22px, 3vw, 34px) 28px;
  border-left: 0;
  background: transparent;
}

.thread-blog-masthead::before {
  content: "";
  position: absolute;
  top: 20px;
  bottom: 24px;
  left: 13px;
  width: 3px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--thread-rail), rgba(242, 121, 7, 0.24));
  box-shadow: 0 0 18px var(--thread-rail-glow);
  pointer-events: none;
}

.thread-blog-masthead::after {
  content: "";
  position: absolute;
  top: 24px;
  bottom: 28px;
  left: 9px;
  width: 11px;
  background: radial-gradient(circle, var(--thread-accent) 0 3px, transparent 3.6px) center top / 11px 64px repeat-y;
  pointer-events: none;
}

.thread-blog-logo-wrap {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  width: 100%;
  min-height: 92px;
  margin: 0 0 8px;
}

.thread-blog-logo {
  display: block;
  width: min(220px, 100%);
  height: auto;
  object-fit: contain;
  object-position: left top;
}

.thread-blog-logo[src=""],
.thread-blog-logo:not([src]) {
  display: none;
}

.thread-blog-kicker {
  margin: 0 0 0.85rem;
  color: var(--thread-accent);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.28em;
  line-height: 1;
  text-transform: uppercase;
}

.thread-blog-title {
  margin: 0 0 0.65rem;
  color: var(--thread-ink);
  font-size: clamp(2.15rem, 3.2vw, 3.8rem);
  line-height: 0.92;
}

.thread-blog-title span {
  display: block;
}

.thread-blog-summary {
  max-width: 23ch;
  margin: 0.75rem 0 0;
  color: var(--thread-muted);
  font-size: 0.9rem;
  line-height: 1.42;
}

.thread-blog-actions {
  margin-top: 18px;
}

.thread-blog-actions .hero-cta {
  min-height: 42px;
  padding: 0 16px;
  white-space: nowrap;
}

.thread-topic-cta {
  background: linear-gradient(135deg, #f27907, #ff9f36);
  color: #07101f;
  box-shadow: 0 14px 32px rgba(242, 121, 7, 0.22);
}

.thread-post-layout {
  display: grid;
  min-width: 0;
  height: auto;
  grid-template-rows: auto auto;
  align-content: start;
  align-self: start;
  gap: 12px;
  margin: 0;
  padding: clamp(18px, 2.2vw, 28px) clamp(18px, 2.2vw, 28px) clamp(18px, 2.2vw, 28px) 0;
}

.thread-featured-post,
.thread-post-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--thread-border);
  color: var(--thread-ink);
  box-shadow: 0 10px 34px rgba(16, 23, 34, 0.08);
}

.thread-featured-post {
  min-height: 230px;
  justify-content: flex-start;
  padding: clamp(18px, 2.2vw, 28px);
  background: var(--thread-featured);
}

.thread-post-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: 12px;
  min-height: 0;
}

.thread-post-card {
  min-height: 162px;
  padding: 16px;
  background: var(--thread-card);
}

.thread-post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
  margin-bottom: 9px;
}

.thread-post-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 21px;
  padding: 0 8px;
  border: 1px solid var(--thread-chip-border);
  background: var(--thread-chip-bg);
  color: var(--thread-chip-ink);
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.075em;
  line-height: 1;
  text-transform: uppercase;
}

.thread-featured-post h3,
.thread-post-card h3 {
  margin: 0 0 8px;
  color: var(--thread-ink);
  line-height: 1.03;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.thread-featured-post h3 {
  max-width: 18ch;
  font-size: clamp(2rem, 2.8vw, 3rem);
}

.thread-post-card h3 {
  font-size: clamp(1.05rem, 1.2vw, 1.28rem);
}

.thread-featured-post p,
.thread-post-card p {
  margin: 0 0 12px;
  color: var(--thread-muted);
  line-height: 1.38;
}

.thread-featured-post p {
  max-width: 58rem;
  font-size: 0.94rem;
}

.thread-post-card p {
  font-size: 0.84rem;
}

.thread-post-link {
  color: var(--thread-ink);
  font-weight: 900;
  text-decoration: underline;
  text-decoration-color: rgba(242, 121, 7, 0.72);
  text-underline-offset: 5px;
}

.thread-featured-post .thread-post-link {
  align-self: flex-start;
  margin-top: 0.45rem;
}

.thread-post-card .thread-post-link {
  margin-top: auto;
}

.thread-post-link:hover,
.thread-post-link:focus-visible {
  color: var(--thread-accent);
}

@media (max-width: 1120px) {
  .thread-blog .container {
    width: min(100% - 36px, 1120px);
  }
}

@media (max-width: 980px) {
  .thread-blog {
    padding-bottom: 28px;
  }

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

  .thread-blog-title {
    max-width: 13ch;
    font-size: clamp(2.8rem, 11vw, 4.65rem);
  }

  .thread-blog-summary {
    max-width: 36rem;
  }

  .thread-post-layout {
    padding-left: clamp(18px, 2.2vw, 28px);
  }
}

@media (max-width: 680px) {
  .thread-blog .container {
    width: min(100% - 28px, 1180px);
  }

  .thread-post-grid {
    grid-template-columns: 1fr;
  }

  .thread-featured-post,
  .thread-post-card {
    min-height: auto;
  }

  .thread-blog-actions {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* Transformation Thread full-article request delivery */
.thread-article-modal {
  width: min(860px, calc(100vw - 32px));
  max-height: min(860px, calc(100vh - 32px));
  padding: 0;
  border: 1px solid rgba(242, 121, 7, 0.32);
  background: #ffffff;
  color: #091427;
  box-shadow: 0 30px 100px rgba(2, 7, 16, 0.38);
}

.thread-article-modal::backdrop {
  background: rgba(2, 7, 16, 0.72);
  backdrop-filter: blur(4px);
}

.thread-article-modal-shell {
  position: relative;
  padding: 32px;
}

.thread-article-modal-close {
  position: absolute !important;
  top: 14px !important;
  right: 14px !important;
}

.thread-article-modal-meta {
  margin: 10px 48px 0 0;
  color: #8b4808;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.thread-article-modal h3 {
  max-width: 720px;
  margin: 12px 48px 0 0;
  color: #091427;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
}

.thread-article-modal-body {
  margin-top: 22px;
  color: rgba(9, 20, 39, 0.78);
  font-size: 0.98rem;
  line-height: 1.72;
}

.thread-article-modal-body p,
.thread-article-modal-body h4,
.thread-article-modal-body h5,
.thread-article-modal-body ul,
.thread-article-modal-body ol,
.thread-article-modal-body blockquote,
.thread-article-modal-body pre,
.thread-article-modal-body hr {
  max-width: 74ch;
  margin: 0 auto 16px;
}

.thread-article-modal-body h4 {
  margin-top: 24px;
  color: #123bff;
  font-size: 1rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.thread-article-modal-body h5 {
  margin-top: 20px;
  color: #123bff;
  font-size: 0.94rem;
}

.thread-article-modal-body ul,
.thread-article-modal-body ol {
  padding-left: 22px;
}

.thread-article-modal-body li + li {
  margin-top: 7px;
}

.thread-article-modal-body blockquote {
  padding: 12px 16px;
  border-left: 3px solid #f27907;
  background: rgba(242, 121, 7, 0.06);
  color: rgba(9, 20, 39, 0.72);
}

.thread-article-modal-body pre {
  overflow-x: auto;
  padding: 14px;
  border: 1px solid rgba(18, 59, 255, 0.14);
  background: #f4f7ff;
}

.thread-article-modal-body code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.88em;
}

.thread-article-modal-body a {
  color: #123bff;
  font-weight: 800;
}

.thread-article-modal-body hr {
  border: 0;
  border-top: 1px solid rgba(18, 59, 255, 0.16);
}

@media (max-width: 640px) {
  .thread-article-modal-shell {
    padding: 24px 20px;
  }

  .thread-article-modal h3 {
    font-size: 1.62rem;
  }

  .thread-article-modal-body {
    font-size: 0.92rem;
  }
}
