/* Shared usability rules for the three separate Work pages.
   Preserve each product palette, composition and animated media. */
.case-body {
  --case-caption: 12px;
  --case-small: 14px;
  --case-body-text: 16px;
  --case-control-radius: 8px;
  --case-panel-radius: 12px;
}

/* Text that visitors must actually read. Display headings stay expressive. */
.case-body .case-overline,
.case-body .case-step small,
.case-body .case-depth__label,
.case-body .case-depth__founder strong,
.case-body .case-demo-panel small,
.case-body .case-demo-panel .case-note {
  font-size: var(--case-caption);
  line-height: 1.45;
  letter-spacing: .06em;
}
.case-body .case-step p {
  font-size: clamp(16px, 1.2vw, 19px);
  line-height: 1.6;
}
.case-body .case-footer {
  font-size: var(--case-caption);
  line-height: 1.5;
  letter-spacing: .045em;
}
.case-body .case-footer a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  line-height: 1.3;
  touch-action: manipulation;
}
.case-body .case-cta,
.case-body .case-next a {
  font-size: var(--case-small);
  touch-action: manipulation;
}
.case-body .case-tablist button {
  font-size: var(--case-small);
  min-height: 51px;
  line-height: 1.4;
  border-radius: var(--case-control-radius);
  touch-action: manipulation;
}
.case-body .case-demo-panel { border-radius: var(--case-panel-radius); }

/* The old accent-on-inverse-section labels failed contrast in all themes. */
.case-body .case-honesty .case-overline { color: var(--cas-paper); }
.case-body .case-honesty .case-actions .case-cta {
  border-color: currentColor;
  background: transparent;
  color: inherit;
}
.case-body .case-honesty .case-actions .case-cta:hover {
  background: var(--cas-paper);
  color: var(--cas-ink);
}
.case-body .case-honesty a:focus-visible {
  outline-color: var(--cas-paper);
  outline-offset: 4px;
}

/* Visual captions remain part of each custom product illustration. */
.case-body :is(
  .record-showcase__heading,
  .record-sheet__eyebrow,
  .evidence-sheet__eyebrow,
  .record-sheet__fact small,
  .record-sheet__fact b,
  .evidence-sheet__bottom,
  .jewel-showcase__eyebrow,
  .jewel-showcase__stages span,
  .office-showcase__head,
  .office-message__eyebrow,
  .office-quote__eyebrow,
  .office-message__foot,
  .office-quote__foot,
  .office-showcase__stages span
) {
  font-size: var(--case-caption);
  line-height: 1.4;
}
.case-body .record-sheet__fact small { color: #4b6285; }
.case-body .jewel-showcase__media .jewel-video-control {
  min-width: 44px;
  min-height: 44px;
  font-size: 13px;
  touch-action: manipulation;
}

@media (max-width: 560px) {
  .case-body :is(.record-showcase__heading, .office-showcase__head) {
    flex-wrap: wrap;
    row-gap: 5px;
  }
  .case-body :is(.record-showcase__heading, .office-showcase__head) > span {
    overflow-wrap: break-word;
  }
  .case-body .case-demo-panel { height: auto; }
}
