.tsai-body {
  --tsai-bg: #f7f8f3;
  --tsai-ink: #101417;
  --tsai-muted: #5e686f;
  --tsai-line: #d8ddd4;
  --tsai-panel: #ffffff;
  --tsai-code: #101820;
  --tsai-green: #1f7a5b;
  --tsai-cyan: #257a8a;
  --tsai-rust: #a24724;
  --tsai-gold: #b7862f;
  margin: 0;
  color: var(--tsai-ink);
  background: var(--tsai-bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

a {
  color: inherit;
  text-decoration: none;
}

.tsai-header {
  position: sticky;
  top: 0;
  z-index: 30;
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 34px;
  border-bottom: 1px solid rgba(216, 221, 212, 0.9);
  background: rgba(247, 248, 243, 0.94);
  backdrop-filter: blur(12px);
}

.tsai-brand,
.tsai-nav,
.tsai-actions {
  display: flex;
  align-items: center;
}

.tsai-brand {
  gap: 10px;
  font-weight: 900;
  font-size: 18px;
}

.tsai-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  color: #ffffff;
  background: var(--tsai-green);
}

.tsai-nav {
  gap: 18px;
  color: #3f494f;
  font-size: 14px;
  font-weight: 760;
}

.tsai-nav a:hover,
.tsai-action:hover,
.inline-cta:hover {
  color: var(--tsai-green);
}

.notice-link {
  padding: 9px 12px;
  border: 1px solid rgba(31, 122, 91, 0.2);
  border-radius: 6px;
  background: #ffffff;
}

.notice-link.active {
  color: #ffffff;
  background: var(--tsai-green);
}

.tsai-action,
.tsai-button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border-radius: 6px;
  font-weight: 850;
}

.tsai-action {
  border: 1px solid var(--tsai-line);
  background: #ffffff;
}

.tsai-link-strip {
  position: sticky;
  top: 68px;
  z-index: 25;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 12px 34px;
  border-bottom: 1px solid rgba(31, 122, 91, 0.2);
  background: rgba(238, 246, 239, 0.97);
  backdrop-filter: blur(10px);
}

.tsai-link-strip a {
  display: grid;
  gap: 4px;
  min-height: 62px;
  align-content: center;
  padding: 12px 16px;
  border: 1px solid rgba(31, 122, 91, 0.44);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(16, 20, 23, 0.08);
}

.tsai-link-strip a.primary-strip-link {
  border-color: rgba(162, 71, 36, 0.62);
  background: #fff7ed;
  box-shadow: 0 14px 30px rgba(162, 71, 36, 0.15);
}

.context-first,
.model-feature,
.flagship-row {
  border-color: rgba(162, 71, 36, 0.66) !important;
  background: #fff7ed !important;
}

.tsai-link-strip span {
  color: var(--tsai-rust);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tsai-link-strip strong {
  color: var(--tsai-ink);
  font-size: 16px;
  line-height: 1.25;
}

.tsai-hero,
.page-hero {
  display: grid;
  gap: 36px;
  align-items: center;
  padding: 70px 40px;
  background:
    linear-gradient(120deg, rgba(247, 248, 243, 0.98), rgba(247, 248, 243, 0.7)),
    repeating-linear-gradient(90deg, rgba(31, 122, 91, 0.12) 0 1px, transparent 1px 88px),
    repeating-linear-gradient(0deg, rgba(37, 122, 138, 0.1) 0 1px, transparent 1px 88px);
}

.tsai-hero {
  min-height: calc(100vh - 68px);
  grid-template-columns: minmax(0, 1.05fr) minmax(420px, 0.95fr);
}

.page-hero.compact {
  min-height: 58vh;
  align-content: center;
}

.tsai-hero-copy,
.page-hero {
  max-width: 1180px;
}

.tsai-kicker {
  margin: 0 0 13px;
  color: var(--tsai-green);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tsai-hero h1,
.page-hero h1 {
  max-width: 980px;
  margin: 0 0 24px;
  font-size: clamp(42px, 6.2vw, 78px);
  line-height: 0.99;
}

.tsai-lede {
  max-width: 810px;
  color: var(--tsai-muted);
  font-size: 20px;
  line-height: 1.65;
}

.tsai-actions {
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.tsai-button.primary {
  color: #ffffff;
  background: var(--tsai-green);
}

.tsai-button.secondary {
  border: 1px solid var(--tsai-line);
  background: rgba(255, 255, 255, 0.76);
}

.tsai-terminal,
.tsai-code-card,
.tsai-api-grid article {
  border: 1px solid rgba(16, 24, 32, 0.2);
  border-radius: 8px;
  background: var(--tsai-code);
  box-shadow: 0 22px 54px rgba(16, 20, 23, 0.16);
  overflow: hidden;
}

.tsai-terminal-bar {
  display: flex;
  gap: 7px;
  padding: 13px 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.tsai-terminal-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #6b7680;
}

pre {
  margin: 0;
  overflow-x: auto;
}

.tsai-terminal pre,
.tsai-code-card pre,
.tsai-api-grid pre {
  padding: 20px;
  color: #e9f2ec;
  font-size: 14px;
  line-height: 1.55;
}

.hero-usecase-panel {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid rgba(31, 122, 91, 0.32);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 22px 54px rgba(16, 20, 23, 0.14);
}

.hero-usecase-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 0 0 12px;
  border-bottom: 1px solid var(--tsai-line);
}

.hero-usecase-head span,
.hero-usecase-panel a span {
  color: var(--tsai-rust);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-usecase-head strong {
  font-size: 18px;
}

.hero-usecase-panel a {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 3px 14px;
  align-items: center;
  min-height: 76px;
  padding: 14px;
  border: 1px solid var(--tsai-line);
  border-radius: 8px;
  background: #f9fbf7;
}

.hero-usecase-panel a strong {
  font-size: 18px;
}

.hero-usecase-panel a small {
  grid-column: 2;
  color: var(--tsai-muted);
  font-size: 14px;
  line-height: 1.4;
}

.tsai-section {
  padding: 86px 40px;
}

.usecase-highlight-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  padding: 34px 40px;
  border-top: 1px solid rgba(162, 71, 36, 0.22);
  border-bottom: 1px solid rgba(162, 71, 36, 0.22);
  background: #fff7ed;
}

.flagship-context {
  background: #ffffff;
}

.context-grid {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.context-grid article {
  min-height: 250px;
  padding: 26px;
  border: 1px solid rgba(162, 71, 36, 0.28);
  border-radius: 8px;
  background: #fff7ed;
}

.context-grid span {
  color: var(--tsai-rust);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.context-grid h3 {
  margin: 16px 0 10px;
  font-size: 24px;
}

.context-grid p {
  color: var(--tsai-muted);
  line-height: 1.65;
}

.usecase-highlight-copy {
  max-width: 860px;
}

.usecase-highlight-copy h2 {
  margin: 0 0 12px;
  font-size: clamp(28px, 3.4vw, 46px);
  line-height: 1.08;
}

.usecase-highlight-copy p:last-child {
  margin: 0;
  color: var(--tsai-muted);
  font-size: 18px;
  line-height: 1.6;
}

.usecase-highlight-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.tech-infra-highlight {
  padding: 86px 40px;
  background: #ffffff;
  border-bottom: 1px solid var(--tsai-line);
}

.tech-infra-highlight .tsai-section-head p:last-child {
  color: var(--tsai-muted);
  line-height: 1.65;
}

.tech-infra-grid {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.tech-infra-grid article {
  min-height: 270px;
  padding: 24px;
  border: 1px solid rgba(31, 122, 91, 0.24);
  border-radius: 8px;
  background: #f9fbf7;
}

.tech-infra-grid span {
  color: var(--tsai-rust);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tech-infra-grid h3 {
  margin: 16px 0 10px;
  font-size: 22px;
}

.tech-infra-grid p {
  color: var(--tsai-muted);
  line-height: 1.62;
}

.tsai-entry {
  background: #ffffff;
}

.tsai-intro {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 42px;
  align-items: start;
}

.tsai-section h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.08;
}

.tsai-copy-stack p,
.tsai-lane span,
.report-card p,
.model-detail-grid p,
.tsai-ops-grid p {
  color: var(--tsai-muted);
  line-height: 1.68;
}

.tsai-section-head {
  max-width: 900px;
  margin: 0 auto 38px;
  text-align: center;
}

.tsai-entry-grid,
.tsai-architecture,
.tsai-model-grid,
.tsai-api-grid,
.tsai-ops-grid,
.report-grid,
.model-detail-grid {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  gap: 16px;
}

.tsai-entry-grid {
  grid-template-columns: repeat(3, 1fr);
}

.tsai-entry-card,
.report-card,
.model-detail-grid article,
.tsai-lane,
.tsai-ops-grid article {
  border: 1px solid var(--tsai-line);
  border-radius: 8px;
  background: var(--tsai-panel);
}

.tsai-entry-card {
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
}

.tsai-entry-card.highlight {
  border-color: rgba(31, 122, 91, 0.48);
  background: #eef6ef;
}

.tsai-entry-card.dark {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
}

.tsai-entry-card span,
.report-card span,
.model-detail-grid span,
.tsai-ops-grid span {
  color: var(--tsai-rust);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tsai-entry-card strong {
  margin: 16px 0;
  font-size: 23px;
  line-height: 1.2;
}

.tsai-entry-card small {
  color: var(--tsai-muted);
  font-size: 15px;
  line-height: 1.5;
}

.tsai-entry-card.dark small {
  color: rgba(255, 255, 255, 0.68);
}

.tsai-architecture {
  grid-template-columns: 0.9fr 1.2fr 0.9fr;
}

.tsai-lane {
  min-height: 320px;
  padding: 24px;
}

.tsai-lane.core {
  border-color: rgba(31, 122, 91, 0.42);
  background: #eef6ef;
}

.tsai-lane span {
  display: block;
  margin-top: 11px;
  padding: 13px;
  border-radius: 6px;
  background: #f6f8f4;
  font-weight: 780;
}

.tsai-dark {
  color: #ffffff;
  background: #101417;
}

.tsai-dark h2,
.tsai-dark h3,
.tsai-dark .tsai-section-head h2 {
  color: #ffffff;
}

.tsai-dark p,
.tsai-dark .tsai-section-head p {
  color: rgba(255, 255, 255, 0.72);
}

.inline-cta {
  display: inline-flex;
  margin-top: 18px;
  padding: 11px 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 6px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.07);
}

.tsai-model-grid,
.tsai-api-grid {
  grid-template-columns: repeat(3, 1fr);
}

.tsai-model-grid article {
  min-height: 150px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.tsai-model-grid strong,
.tsai-model-grid span {
  display: block;
}

.tsai-model-grid strong {
  margin-bottom: 12px;
  color: #ffffff;
  font-size: 21px;
}

.tsai-model-grid span {
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.55;
}

.tsai-api-grid article h3 {
  margin: 0;
  padding: 18px 20px;
  color: #ffffff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.tsai-ops-grid {
  grid-template-columns: repeat(4, 1fr);
}

.tsai-ops-grid article {
  padding: 24px;
}

.report-grid {
  grid-template-columns: repeat(2, 1fr);
}

.report-card,
.model-detail-grid article {
  padding: 28px;
}

.report-card.priority {
  border-color: rgba(31, 122, 91, 0.5);
  background: #eef6ef;
}

.report-card a {
  display: block;
  margin-top: 12px;
  color: var(--tsai-green);
  font-weight: 850;
}

.model-detail-grid {
  grid-template-columns: repeat(3, 1fr);
}

.model-detail-grid article {
  min-height: 330px;
}

.usecase-table-wrap {
  max-width: 1180px;
  margin: 0 auto;
  overflow-x: auto;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
}

.usecase-table {
  width: 100%;
  min-width: 850px;
  border-collapse: collapse;
}

.usecase-table th,
.usecase-table td {
  padding: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  text-align: left;
  vertical-align: top;
}

.usecase-table th {
  color: #ffffff;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.usecase-table td {
  color: rgba(255, 255, 255, 0.74);
  line-height: 1.55;
}

.usecase-table code {
  color: #e9f2ec;
}

.model-detail-grid strong {
  display: block;
  margin-top: 18px;
}

.tsai-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 40px;
  border-top: 1px solid var(--tsai-line);
  color: var(--tsai-muted);
  background: #ffffff;
}

.tsai-footer a {
  color: var(--tsai-green);
  font-weight: 800;
}

@media (max-width: 1040px) {
  .tsai-header {
    min-height: auto;
    flex-wrap: wrap;
    padding: 0 22px;
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .tsai-nav {
    order: 3;
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
  }

  .tsai-nav a:not(.notice-link) {
    display: none;
  }

  .tsai-link-strip {
    top: 112px;
    grid-template-columns: 1fr 1fr;
    padding: 10px 22px;
  }

  .tsai-hero,
  .usecase-highlight-section,
  .tsai-intro,
  .tsai-entry-grid,
  .context-grid,
  .tech-infra-grid,
  .tsai-architecture,
  .tsai-model-grid,
  .tsai-api-grid,
  .tsai-ops-grid,
  .report-grid,
  .model-detail-grid {
    grid-template-columns: 1fr;
  }

  .tsai-hero,
  .page-hero {
    padding: 70px 24px;
  }

  .tsai-section {
    padding: 72px 24px;
  }

  .usecase-highlight-section {
    padding: 30px 24px;
  }

  .tech-infra-highlight {
    padding: 72px 24px;
  }
}

@media (max-width: 640px) {
  .tsai-action {
    display: none;
  }

  .tsai-hero h1,
  .page-hero h1 {
    font-size: 42px;
  }

  .tsai-footer {
    flex-direction: column;
  }

  .tsai-link-strip {
    position: static;
    grid-template-columns: 1fr;
  }
}

/* ---------------------------------------------------------------------------
   Infrastructure architecture diagram (compact, all modules).
   Shared by the main page (#architecture) and the Tech & Infra section.
   Style aligned with matrixark.ai infra diagrams.
--------------------------------------------------------------------------- */
.ts-infra {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  gap: 10px;
  padding: 22px;
  border: 1px solid var(--tsai-line);
  border-radius: 10px;
  background: var(--tsai-panel);
}

.ts-lane-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  color: var(--tsai-rust);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ts-lane-label:first-child {
  margin-top: 0;
}

.ts-infra-row {
  display: grid;
  gap: 10px;
  align-items: stretch;
}

.ts-infra-row.cols-1 {
  grid-template-columns: 1fr;
}
.ts-infra-row.cols-2 {
  grid-template-columns: repeat(2, 1fr);
}
.ts-infra-row.cols-3 {
  grid-template-columns: repeat(3, 1fr);
}

.ts-node {
  display: grid;
  gap: 4px;
  align-content: center;
  min-height: 62px;
  padding: 12px 14px;
  border: 1px solid var(--tsai-line);
  border-radius: 8px;
  background: #f6f8f4;
  color: var(--tsai-ink);
  text-align: center;
}

.ts-node strong {
  font-size: 14px;
  line-height: 1.2;
}

.ts-node small {
  color: var(--tsai-muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}

.ts-node.core {
  border-color: rgba(31, 122, 91, 0.45);
  background: linear-gradient(180deg, #eefaf3, #dff0e7);
  color: #0b5b46;
}

.ts-node.dep {
  border-color: rgba(37, 122, 138, 0.45);
  background: linear-gradient(180deg, #eef7fa, #dcecf1);
  color: #155564;
}

a.ts-node.ent {
  border-color: rgba(116, 70, 184, 0.42);
  background: linear-gradient(180deg, #f3eefb, #e6dbf6);
  color: #4b2d86;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

a.ts-node.ent:hover,
a.ts-node.ent:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(75, 45, 134, 0.18);
}

.ts-tier {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--tsai-line);
  border-radius: 8px;
  overflow: hidden;
}

.ts-tier div {
  padding: 12px 14px;
  text-align: center;
  border-right: 1px solid var(--tsai-line);
}

.ts-tier div:last-child {
  border-right: none;
}

.ts-tier strong {
  display: block;
  font-size: 13px;
}

.ts-tier small {
  display: block;
  margin-top: 2px;
  color: var(--tsai-muted);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.3;
}

.ts-tier .hot {
  background: linear-gradient(180deg, #fdeee4, #f7ddc9);
  color: #8a3f18;
}
.ts-tier .warm {
  background: linear-gradient(180deg, #fff6e6, #f4e6c4);
  color: #7a5610;
}
.ts-tier .cold {
  background: linear-gradient(180deg, #eef2f4, #dfe6ea);
  color: #3b4b57;
}

.ts-flow {
  display: grid;
  place-items: center;
  color: var(--tsai-muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.ent-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  background: #4b2d86;
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.ent-badge.soft {
  background: rgba(75, 45, 134, 0.12);
  color: #4b2d86;
}

.tsai-arch-note {
  max-width: 1180px;
  margin: 16px auto 0;
  color: var(--tsai-muted);
  font-size: 14px;
  line-height: 1.6;
}

.tsai-arch-note a {
  color: var(--tsai-green);
  font-weight: 700;
}

/* Comparison / capability tables for enterprise backend pages */
.tsai-table-wrap {
  max-width: 1180px;
  margin: 0 auto;
  overflow-x: auto;
}

.tsai-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--tsai-line);
  border-radius: 8px;
  overflow: hidden;
  font-size: 15px;
}

.tsai-table th,
.tsai-table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--tsai-line);
  vertical-align: top;
  line-height: 1.5;
}

.tsai-table thead th {
  background: #eef6ef;
  color: #0b5b46;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.tsai-table tbody tr:last-child td {
  border-bottom: none;
}

.tsai-table td small {
  color: var(--tsai-muted);
}

.page-hero .ent-badge {
  vertical-align: middle;
}

/* Benefits grid (main page) */
.tsai-benefits {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.tsai-benefits article {
  padding: 24px;
  border: 1px solid var(--tsai-line);
  border-radius: 8px;
  background: var(--tsai-panel);
}

.tsai-benefits .metric {
  display: block;
  margin-bottom: 8px;
  color: var(--tsai-green);
  font-size: 24px;
  font-weight: 900;
  line-height: 1.1;
}

.tsai-benefits h3 {
  margin: 0 0 8px;
  font-size: 19px;
}

.tsai-benefits p {
  margin: 0;
  color: var(--tsai-muted);
  line-height: 1.6;
}

.tsai-benefits p a {
  color: var(--tsai-green);
  font-weight: 700;
}

@media (max-width: 860px) {
  .tsai-benefits {
    grid-template-columns: 1fr;
  }
}

/* Context workflow pipeline (ingest / extract / retrieve) */
.ts-pipeline {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.ts-step {
  padding: 16px;
  border: 1px solid var(--tsai-line);
  border-radius: 8px;
  background: var(--tsai-panel);
}

.ts-step .n {
  display: inline-block;
  margin-bottom: 8px;
  padding: 2px 9px;
  border-radius: 999px;
  background: #eef6ef;
  color: #0b5b46;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.03em;
}

.ts-step h4 {
  margin: 0 0 6px;
  font-size: 16px;
}

.ts-step p {
  margin: 0;
  color: var(--tsai-muted);
  font-size: 13px;
  line-height: 1.5;
}

.ts-step code {
  background: #f0f2ee;
  padding: 1px 5px;
  border-radius: 4px;
  font-size: 12px;
}

@media (max-width: 860px) {
  .ts-pipeline {
    grid-template-columns: 1fr;
  }
}

/* Teaching prose, simple (un-boxed) examples, figures, and split layouts.
   Use these instead of filling every section with a grid of card boxes. */
.ts-prose {
  max-width: 820px;
  margin: 0 auto;
}

.ts-prose p {
  color: var(--tsai-ink);
  font-size: 17px;
  line-height: 1.75;
  margin: 0 0 18px;
}

.ts-prose p.muted {
  color: var(--tsai-muted);
}

.ts-prose h3 {
  font-size: 22px;
  margin: 34px 0 10px;
}

.ts-prose ul,
.ts-prose ol {
  padding-left: 20px;
  color: var(--tsai-muted);
  line-height: 1.75;
  font-size: 16px;
}

.ts-prose li {
  margin: 7px 0;
}

.ts-prose strong {
  color: var(--tsai-ink);
}

.ts-prose a {
  color: var(--tsai-green);
  font-weight: 700;
}

.ts-example {
  max-width: 900px;
  margin: 22px auto;
}

.ts-example .cap {
  display: block;
  margin-bottom: 8px;
  color: var(--tsai-rust);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.ts-example pre {
  margin: 0;
  padding: 18px 20px;
  border: 1px solid var(--tsai-line);
  border-radius: 8px;
  background: var(--tsai-code);
  color: #e8eef0;
  overflow-x: auto;
  font-size: 13.5px;
  line-height: 1.6;
}

.ts-example.light pre {
  background: #f6f8f4;
  color: var(--tsai-ink);
}

.ts-figure {
  max-width: 1180px;
  margin: 0 auto;
}

.ts-figcap {
  max-width: 900px;
  margin: 12px auto 0;
  text-align: center;
  color: var(--tsai-muted);
  font-size: 13px;
  line-height: 1.5;
}

.ts-split {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: center;
}

.ts-split .ts-prose {
  margin: 0;
}

@media (max-width: 860px) {
  .ts-split {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (max-width: 860px) {
  .ts-infra-row.cols-2,
  .ts-infra-row.cols-3,
  .ts-tier {
    grid-template-columns: 1fr;
  }
  .ts-tier div {
    border-right: none;
    border-bottom: 1px solid var(--tsai-line);
  }
  .ts-tier div:last-child {
    border-bottom: none;
  }
}
