/* Architecture diagrams and estate tables for case studies */
.article { max-width: 960px; }
.blog-hero .inner { max-width: 960px; }

.cs-arch {
  margin: 28px 0 10px;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #f8fafc;
  overflow: hidden;
}
.cs-arch__title {
  padding: 14px 16px 0;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #64748b;
}
.cs-arch__canvas {
  padding: 12px 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.cs-arch__lane {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 8px;
  align-items: stretch;
}
.cs-arch__lane-label {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: .66rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #fff;
  border-radius: 8px;
  padding: 8px 6px;
  line-height: 1.25;
}
.cs-arch__nodes {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
}
.cs-arch__nodes.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cs-arch__nodes.cols-5 { grid-template-columns: repeat(5, 1fr); }
.cs-arch__node {
  background: #fff;
  border: 1px solid #dbe3ee;
  border-radius: 8px;
  padding: 9px 8px;
  text-align: center;
  min-width: 0;
}
.cs-arch__node strong {
  display: block;
  font-size: .78rem;
  font-weight: 800;
  color: #0a1624;
  line-height: 1.25;
}
.cs-arch__node span {
  display: block;
  font-size: .68rem;
  color: #64748b;
  margin-top: 3px;
  line-height: 1.35;
}
.cs-arch__node.wide { grid-column: span 2; }
.cs-arch__caption {
  font-size: .88rem;
  color: #475569;
  margin: 0 0 22px;
  line-height: 1.55;
}

.lane-src { background: #334155; }
.lane-mx { background: #0f4c81; }
.lane-store { background: #0e7490; }
.lane-compute { background: #1d4ed8; }
.lane-orch { background: #6d28d9; }
.lane-gov { background: #0f766e; }
.lane-consume { background: #c2410c; }
.lane-aws { background: #b45309; }
.lane-azure { background: #0369a1; }
.lane-gcp { background: #15803d; }

.cs-flow {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin: 20px 0 8px;
}
.cs-flow__step {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 14px 12px;
  text-align: center;
  position: relative;
}
.cs-flow__step em {
  display: block;
  font-style: normal;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #76a5d4;
  margin-bottom: 6px;
}
.cs-flow__step strong {
  display: block;
  font-size: .86rem;
  color: #0a1624;
  margin-bottom: 4px;
}
.cs-flow__step span {
  display: block;
  font-size: .75rem;
  color: #64748b;
  line-height: 1.4;
}

@media (max-width: 800px) {
  .cs-arch__lane { grid-template-columns: 1fr; }
  .cs-arch__nodes,
  .cs-arch__nodes.cols-3,
  .cs-arch__nodes.cols-5,
  .cs-flow { grid-template-columns: 1fr 1fr; }
  .cs-arch__node.wide { grid-column: span 1; }
}
@media (max-width: 520px) {
  .cs-arch__nodes,
  .cs-arch__nodes.cols-3,
  .cs-arch__nodes.cols-5,
  .cs-flow { grid-template-columns: 1fr; }
}

/* Cloud architecture diagrams — AWS / Azure / GCP drawing language */
.cd {
  margin: 28px 0 12px;
  background:
    radial-gradient(circle at 1px 1px, #d5deea 1px, transparent 0) 0 0 / 18px 18px,
    #eef3f8;
  border: 1px solid #d0dae6;
  border-radius: 12px;
  padding: 14px 14px 16px;
}
.cd-title {
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #475569;
  margin: 0 0 12px;
}
.cd-flow {
  display: flex;
  align-items: stretch;
  gap: 8px;
}
.cd-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  min-width: 0;
}
.cd-group {
  background: rgba(255,255,255,.82);
  border: 2px dashed #94a3b8;
  border-radius: 10px;
  padding: 10px 8px 10px;
  min-width: 0;
}
.cd-group.is-onprem { border-color: #64748b; background: #f8fafc; }
.cd-group.is-mx { border-color: #5b8ec4; background: #f3f8fd; }
.cd-group.is-aws { border-color: #f59e0b; background: #fffbeb; }
.cd-group.is-azure { border-color: #3b82f6; background: #eff6ff; }
.cd-group.is-gcp { border-color: #22c55e; background: #f0fdf4; }
.cd-group.is-snow { border-color: #29b5e8; background: #f0fbff; }
.cd-group.is-dbx { border-color: #ff3621; background: #fff6f4; }
.cd-group__head {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #1e293b;
  margin-bottom: 8px;
}
.cd-group__head img,
.cd-group__head .cd-mark {
  height: 18px;
  width: auto;
  max-width: 28px;
  object-fit: contain;
}
.cd-svcs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 7px;
}
.cd-svcs.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cd-svc {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(15,23,42,.07);
  padding: 9px 6px 8px;
  text-align: center;
}
.cd-svc img,
.cd-svc .cd-mark {
  width: 36px;
  height: 36px;
  object-fit: contain;
  display: block;
  margin: 0 auto 6px;
}
.cd-svc .cd-mark:empty {
  border-radius: 8px;
  background: #e2e8f0;
}
.cd-svc b {
  display: block;
  font-size: .7rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.2;
}
.cd-svc small {
  display: block;
  font-size: .62rem;
  color: #64748b;
  margin-top: 2px;
  line-height: 1.3;
}
.cd-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  font-size: 1.35rem;
  font-weight: 700;
  flex-shrink: 0;
  min-width: 18px;
}
.cd-clouds {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 8px;
}
@media (max-width: 860px) {
  .cd-flow { flex-direction: column; }
  .cd-arrow { transform: rotate(90deg); min-height: 22px; }
  .cd-clouds { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .cd-svcs, .cd-svcs.cols-3 { grid-template-columns: 1fr 1fr; }
}
