: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: min(230px, 52vw); height: auto; }

.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; }
}
