/* Shared case study layout — keeps left subtitles aligned across pages */
:root {
  --cs-shell-max: 1200px;
  --cs-label-col: 200px;
  --cs-content-col: 810px;
  --cs-col-gap: 48px;
  --cs-type: 0.8;
  --cs-fs-h1: calc(96px * var(--cs-type));
  --cs-fs-h1-sm: calc(56px * var(--cs-type));
  --cs-fs-h1-sm2: calc(48px * var(--cs-type));
  --cs-fs-display: calc(60px * var(--cs-type));
  --cs-fs-display-sm: calc(36px * var(--cs-type));
  --cs-fs-body: calc(24px * var(--cs-type));
  --cs-fs-lead: calc(23px * var(--cs-type));
  --cs-fs-stat: calc(120px * var(--cs-type));
  --cs-fs-stat-sm: calc(72px * var(--cs-type));
  --cs-fs-label: calc(18px * var(--cs-type));
  --cs-fs-next: calc(56px * var(--cs-type));
  --cs-fs-next-sm: calc(36px * var(--cs-type));
  --cs-fs-quote: calc(36px * var(--cs-type));
  --cs-fs-subhead: calc(28px * var(--cs-type));
  --cs-fs-title-sm: calc(25px * var(--cs-type));
  --cs-fs-card: calc(20px * var(--cs-type));
  --cs-fs-caption: calc(18px * var(--cs-type));
  --cs-fs-meta: 12px;
}

html, body {
  overflow-x: hidden;
  max-width: 100%;
}

.shell {
  max-width: var(--cs-shell-max);
  margin: 0 auto;
  padding: 0 40px;
}

.row {
  display: grid;
  grid-template-columns: var(--cs-label-col) var(--cs-content-col);
  column-gap: var(--cs-col-gap);
  align-items: start;
  justify-content: start;
}

.row > .label {
  grid-column: 1;
  justify-self: start;
}

.row > .content-col {
  grid-column: 2;
  min-width: 0;
}

.row-content {
  display: grid;
  grid-template-columns: var(--cs-label-col) var(--cs-content-col);
  column-gap: var(--cs-col-gap);
  align-items: start;
  justify-content: start;
}

.row-content > * {
  grid-column: 2;
  min-width: 0;
}

.label {
  font-family: 'JetBrains Mono', monospace;
  font-size: var(--cs-fs-label);
  font-weight: 700;
  letter-spacing: 0.101em;
  text-transform: uppercase;
  color: #8B8880;
  line-height: 1.32;
  padding: 8px 0 0;
  margin: 0;
  text-align: left;
  width: var(--cs-label-col);
  min-width: var(--cs-label-col);
  max-width: var(--cs-label-col);
  white-space: pre-line;
}

@media (max-width: 980px) {
  .shell {
    padding-left: 16px;
    padding-right: 16px;
  }

  .row,
  .row-content {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .row > .content-col,
  .row-content > * {
    grid-column: 1;
  }

  .label {
    width: auto;
    min-width: 0;
    max-width: none;
  }
}
