:root {
  color-scheme: light;
  font-family: "IBM Plex Sans", "Segoe UI", Arial, sans-serif;
  color: #0f172a;
  background: #f6f8fb;
  --ink: #0f172a;
  --muted: #475569;
  --line: #cbd5e1;
  --soft: #e8eef6;
  --paper: #ffffff;
  --accent: #0f766e;
  --accent-soft: #d9f4ee;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(180deg, #f8fafc 0%, #edf3f8 100%);
}

a { color: inherit; }

.site-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px clamp(18px, 4vw, 48px);
  border-bottom: 1px solid rgba(148, 163, 184, 0.45);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
}

.brand img { display: block; width: 48px; height: 48px; object-fit: contain; }

.site-nav nav,
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  color: #334155;
  font-size: 0.92rem;
  font-weight: 800;
}

.site-nav a,
.site-footer a { text-decoration: none; }

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 14px;
  border-radius: 8px;
  background: #0f172a;
  color: #ffffff;
  font-weight: 900;
  white-space: nowrap;
}

.article-shell,
.blog-index {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.article-hero,
.index-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: clamp(28px, 5vw, 56px);
  align-items: center;
  padding: clamp(36px, 7vw, 84px) 0 36px;
}

.index-hero { display: block; max-width: 980px; }

.kicker {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 {
  max-width: 14ch;
  margin: 0;
  color: var(--ink);
  font-size: clamp(2.4rem, 6vw, 5.2rem);
  line-height: 0.96;
  letter-spacing: 0;
}

.index-hero h1 { max-width: 16ch; }

.lede,
.index-hero p {
  max-width: 72ch;
  color: var(--muted);
  font-size: clamp(1.03rem, 2vw, 1.25rem);
  line-height: 1.62;
  font-weight: 650;
}

.meta-row,
.cluster-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.meta-row span,
.cluster-row span {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  background: #ffffff;
  color: #334155;
  font-size: 0.84rem;
  font-weight: 850;
}

.hero-figure {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.1);
}

.hero-figure img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.hero-figure figcaption {
  padding: 12px 14px;
  color: #475569;
  font-size: 0.86rem;
  font-weight: 700;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 34px;
  align-items: start;
  padding-bottom: 60px;
}

.article-body {
  display: grid;
  gap: 22px;
}

.article-body section,
.side-card,
.article-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
}

.article-body section { padding: clamp(20px, 3vw, 30px); }

.article-body h2,
.side-card h2,
.article-card h2 {
  margin: 0 0 12px;
  color: #111827;
  font-size: clamp(1.28rem, 2.2vw, 1.8rem);
  line-height: 1.15;
  letter-spacing: 0;
}

.article-body p,
.article-body li,
.side-card p {
  color: #334155;
  font-size: 1rem;
  line-height: 1.72;
}

.article-body ul,
.article-body ol {
  margin: 12px 0 0;
  padding-left: 22px;
}

.diagram-section {
  background: linear-gradient(180deg, #ffffff, #f2f7fb) !important;
}

.bar-chart {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

.bar-row {
  display: grid;
  grid-template-columns: 160px minmax(140px, 1fr);
  gap: 10px 14px;
  align-items: center;
}

.bar-label {
  color: #0f172a;
  font-size: 0.92rem;
  font-weight: 950;
}

.bar-track {
  height: 14px;
  overflow: hidden;
  border-radius: 999px;
  background: #dbe4ef;
}

.bar-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #0f766e, #0f172a);
}

.bar-caption {
  grid-column: 2;
  margin-top: -6px;
  color: #64748b;
  font-size: 0.82rem;
  font-weight: 700;
}

.flow-strip {
  display: grid;
  grid-template-columns: 1fr 36px 1fr 36px 1fr 36px 1fr;
  gap: 8px;
  align-items: center;
  margin-top: 24px;
}

.flow-strip span {
  min-height: 58px;
  display: grid;
  place-items: center;
  border: 1px solid #9fb3c8;
  border-radius: 8px;
  background: #ffffff;
  color: #0f172a;
  font-weight: 950;
  text-align: center;
}

.flow-strip strong {
  height: 2px;
  background: #0f766e;
}

.article-side {
  position: sticky;
  top: 86px;
  display: grid;
  gap: 16px;
}

.side-card {
  padding: 18px;
}

.side-card h2 { font-size: 1.1rem; }

.cta-card {
  background: #0f172a;
  color: #ffffff;
}

.cta-card h2,
.cta-card p { color: #ffffff; }

.cta-card a {
  display: inline-flex;
  margin-top: 8px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #ffffff;
  color: #0f172a;
  font-weight: 950;
  text-decoration: none;
}

.related-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 18px;
}

.related-list a {
  color: #0f766e;
  font-weight: 850;
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding: 0 0 60px;
}

.pillar-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  padding: 0 0 28px;
}

.pillar-card {
  display: grid;
  align-content: start;
  min-height: 210px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: inherit;
  text-decoration: none;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
}

.pillar-card span,
.pillar-link-card a {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.pillar-card h2 {
  margin: 10px 0;
  color: #0f172a;
  font-size: 1.08rem;
  line-height: 1.2;
}

.pillar-card p {
  margin: 0;
  color: #475569;
  font-weight: 650;
  line-height: 1.55;
}

.article-card {
  display: grid;
  align-content: start;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
}

.article-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.article-card span {
  display: block;
  padding: 16px 18px 0;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 950;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.article-card h2 {
  padding: 0 18px;
  font-size: 1.16rem;
}

.article-card p {
  margin: 0;
  padding: 0 18px 20px;
  color: #475569;
  line-height: 1.55;
  font-weight: 650;
}

.pillar-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.pillar-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: clamp(28px, 5vw, 56px);
  align-items: center;
  padding: clamp(36px, 7vw, 84px) 0 28px;
}

.pillar-intro,
.pillar-panel,
.pillar-cta {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
}

.pillar-intro {
  margin-bottom: 18px;
  padding: clamp(22px, 4vw, 34px);
  background: linear-gradient(135deg, #ffffff, #eef7f4);
}

.pillar-intro h2,
.pillar-panel h2,
.pillar-cta h2 {
  margin: 0 0 12px;
  color: #0f172a;
  font-size: clamp(1.35rem, 2.5vw, 2rem);
  line-height: 1.15;
}

.pillar-intro p,
.pillar-panel li,
.pillar-panel p,
.pillar-cta p {
  color: #334155;
  font-size: 1rem;
  line-height: 1.7;
}

.pillar-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 18px;
}

.pillar-panel {
  margin-bottom: 18px;
  padding: clamp(20px, 3vw, 30px);
}

.pillar-panel ul {
  margin: 0;
  padding-left: 22px;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.process-step {
  min-height: 150px;
  padding: 16px;
  border: 1px solid #d8e2ec;
  border-radius: 8px;
  background: #f8fafc;
}

.process-step span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: #0f172a;
  color: #ffffff;
  font-weight: 950;
}

.process-step p {
  margin: 12px 0 0;
  font-weight: 750;
}

.faq-grid {
  display: grid;
  gap: 10px;
}

.faq-grid details {
  border: 1px solid #d8e2ec;
  border-radius: 8px;
  background: #f8fafc;
  padding: 14px 16px;
}

.faq-grid summary {
  color: #0f172a;
  cursor: pointer;
  font-weight: 950;
}

.faq-grid p {
  margin: 10px 0 0;
}

.compact-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding-bottom: 0;
}

.pillar-cta {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  margin-bottom: 60px;
  padding: clamp(22px, 4vw, 34px);
  background: #0f172a;
}

.pillar-cta h2,
.pillar-cta p {
  color: #ffffff;
}

.pillar-cta a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 16px;
  border-radius: 8px;
  background: #ffffff;
  color: #0f172a;
  font-weight: 950;
  text-decoration: none;
  white-space: nowrap;
}

.pillar-link-card a {
  display: inline-block;
  margin-top: 6px;
  text-decoration: none;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 24px clamp(18px, 4vw, 48px);
  border-top: 1px solid var(--line);
  background: #ffffff;
  color: #475569;
  font-weight: 800;
}

@media (max-width: 960px) {
  .site-nav { align-items: flex-start; flex-direction: column; }
  .article-hero,
  .article-layout,
  .pillar-hero,
  .pillar-layout {
    grid-template-columns: 1fr;
  }
  .article-side { position: static; }
  .article-grid,
  .pillar-grid,
  .compact-grid,
  .process-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .pillar-cta {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .article-shell,
  .blog-index,
  .pillar-shell { width: min(100% - 22px, 1180px); }
  h1 { font-size: clamp(2.1rem, 14vw, 3.4rem); }
  .article-grid,
  .pillar-grid,
  .compact-grid,
  .process-grid { grid-template-columns: 1fr; }
  .bar-row { grid-template-columns: 1fr; }
  .bar-caption { grid-column: 1; }
  .flow-strip {
    grid-template-columns: 1fr;
  }
  .flow-strip strong {
    width: 2px;
    height: 18px;
    justify-self: center;
  }
  .site-footer { flex-direction: column; }
}

/* Launch index: selected B direction. Article pages keep their existing layout. */
.launch-blog-index {
  color: #18232c;
  background: #ffffff;
}

.launch-blog-index .site-nav {
  min-height: 68px;
  padding-top: 9px;
  padding-bottom: 9px;
  border-color: #dbe1e5;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: none;
}

.launch-blog-index .brand img {
  width: 48px;
  height: 48px;
}

.launch-blog-index .site-nav nav {
  gap: 22px;
  color: #43515c;
  font-size: 0.86rem;
}

.launch-blog-index .nav-cta {
  min-height: 40px;
  padding: 9px 14px;
  border-radius: 5px;
  background: #175f8a;
  font-size: 0.82rem;
}

.launch-blog-main {
  width: min(1160px, calc(100% - 40px));
}

.launch-index-hero {
  max-width: 900px;
  padding: 70px 0 52px;
}

.launch-index-hero h1 {
  max-width: 18ch;
  color: #17212b;
  font-size: 3.25rem;
  line-height: 1.06;
}

.launch-index-hero > p:not(.kicker) {
  max-width: 68ch;
  color: #596771;
  font-size: 1.04rem;
  font-weight: 500;
}

.launch-category-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 30px;
  padding: 16px 0;
  border-top: 1px solid #dfe5e8;
  border-bottom: 1px solid #dfe5e8;
}

.launch-category-nav a {
  color: #285f7f;
  font-size: 0.8rem;
  font-weight: 850;
  text-decoration: none;
}

.launch-featured,
.launch-topic-section {
  padding: 58px 0;
  border-top: 1px solid #dfe5e8;
}

.launch-section-heading {
  max-width: 720px;
  margin-bottom: 28px;
}

.launch-section-heading h2 {
  margin: 0;
  color: #17232c;
  font-size: 2rem;
  line-height: 1.15;
}

.launch-featured-article {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
  overflow: hidden;
  border: 1px solid #cbd5dc;
  border-radius: 8px;
  color: inherit;
  background: #ffffff;
  text-decoration: none;
}

.launch-featured-article img {
  width: 100%;
  height: auto;
  aspect-ratio: 1200 / 630;
  display: block;
  align-self: center;
  object-fit: contain;
  background: #edf1f3;
}

.launch-featured-article > div {
  display: grid;
  align-content: center;
  gap: 12px;
  padding: 34px;
}

.launch-featured-article span,
.launch-article-list span {
  color: #28658a;
  font-size: 0.7rem;
  font-weight: 900;
  text-transform: uppercase;
}

.launch-featured-article h3,
.launch-article-list h3 {
  margin: 0;
  color: #1c2a34;
  letter-spacing: 0;
}

.launch-featured-article h3 {
  font-size: 1.7rem;
  line-height: 1.18;
}

.launch-featured-article p,
.launch-article-list p {
  margin: 0;
  color: #5e6b74;
  line-height: 1.6;
}

.launch-featured-article strong {
  color: #175f8a;
  font-size: 0.8rem;
}

.launch-article-list {
  display: grid;
  border-top: 1px solid #cfd8de;
}

.launch-article-list > a {
  display: grid;
  grid-template-columns: 160px minmax(240px, 0.75fr) minmax(280px, 1fr);
  align-items: center;
  gap: 24px;
  min-height: 116px;
  padding: 20px 4px;
  border-bottom: 1px solid #dfe5e8;
  color: inherit;
  text-decoration: none;
}

.launch-article-list > a:hover h3,
.launch-featured-article:hover h3 {
  color: #175f8a;
}

.launch-article-list h3 {
  font-size: 1.02rem;
  line-height: 1.3;
}

.launch-article-list p {
  font-size: 0.86rem;
}

.launch-site-footer {
  color: #66737c;
  background: #f6f7f8;
  font-size: 0.8rem;
  font-weight: 600;
}

@media (max-width: 900px) {
  .launch-blog-index .site-nav {
    align-items: center;
    flex-direction: row;
    flex-wrap: wrap;
  }

  .launch-blog-index .site-nav nav {
    order: 3;
    width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-top: 8px;
    border-top: 1px solid #e0e5e8;
  }

  .launch-blog-index .site-nav nav a {
    min-width: max-content;
  }

  .launch-featured-article {
    grid-template-columns: 1fr;
  }

  .launch-article-list > a {
    grid-template-columns: 130px minmax(220px, 0.8fr) minmax(220px, 1fr);
  }
}

@media (max-width: 640px) {
  .launch-blog-main {
    width: calc(100% - 28px);
  }

  .launch-blog-index .site-nav {
    padding-right: 14px;
    padding-left: 14px;
  }

  .launch-blog-index .brand img {
    width: 44px;
    height: 44px;
  }

  .launch-blog-index .nav-cta {
    padding: 8px 10px;
    font-size: 0.72rem;
  }

  .launch-index-hero {
    padding: 44px 0 38px;
  }

  .launch-index-hero h1 {
    max-width: 100%;
    font-size: 2.3rem;
  }

  .launch-featured,
  .launch-topic-section {
    padding: 44px 0;
  }

  .launch-section-heading h2 {
    font-size: 1.6rem;
  }

  .launch-featured-article > div {
    padding: 24px 20px;
  }

  .launch-featured-article h3 {
    font-size: 1.35rem;
  }

  .launch-article-list > a {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 22px 0;
  }

  .launch-site-footer {
    align-items: flex-start;
  }
}
