/* Shared presentation refinements; Astra continues to own fonts and brand colors. */
body.zm-ui .zm-about-section {
  background: #fff;
}

body.zm-ui .zm-about-section.alt {
  background: var(--zm-paper, #f4f7f8);
}

body.zm-ui .zm-about-section.alt .zm-about-feature {
  background: #fff;
}

body.zm-ui :is(.zm-product-card, .zmp-card, .zm-case-card, .zmp-category-card) {
  min-width: 0;
  border-color: var(--zm-line, #dde7eb);
  border-radius: 12px;
  background: #fff;
}

body.zm-ui :is(.zm-product-card, .zmp-card, .zm-case-card):focus-within {
  border-color: var(--zm-teal, #087f78);
}

body.zm-ui :is(.zm-product-card .body, .zmp-card-body, .zm-case-card .body) {
  padding: 22px;
  gap: 12px;
}

body.zm-ui :is(.zm-product-card .image, .zmp-image) {
  height: auto;
  min-height: 180px;
  max-height: 280px;
  aspect-ratio: 16 / 10;
  padding: 22px;
  background: #fff;
}

body.zm-ui :is(.zm-product-card strong, .zmp-card h3, .zm-case-card strong) {
  font-size: 18px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

body.zm-ui .zm-about-section :is(.zmp-card, .zmp-category-card, .zm-case-card) p,
body.zm-ui .zm-product-card .body > span {
  font-size: 15px;
  line-height: 1.8;
}

/* These component descriptions must remain smaller than Astra's main body copy. */
body.zm-ui.zm-astra-design .zm-about-section :is(.zmp-card, .zmp-category-card, .zm-case-card) p {
  font-size: 15px !important;
}

body.zm-ui .zm-case-grid--uniform .zm-case-card strong,
body.zm-ui .zm-case-grid--uniform .zm-case-card p {
  display: block;
  height: auto;
  min-height: 0;
  overflow: visible;
  -webkit-line-clamp: unset;
}

body.zm-ui .zm-case-grid--uniform .zm-case-card .zm-about-taglist {
  min-height: 0;
}

body.zm-ui .zm-case-card a.more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
}

body.zm-ui .zmc18-content .zmc18-stories {
  gap: 28px;
}

body.zm-ui .zmc18-story {
  border-color: var(--zm-line, #dde7eb);
  background: var(--zm-paper, #f4f7f8);
}

body.zm-ui .zmc18-story p,
body.zm-ui .zmc18-faq p {
  line-height: 1.85;
}

body.zm-ui .zmc18-story:not(.has-image) .zmc18-copy {
  max-width: 76ch;
}

body.zm-ui .zmc18-story figcaption {
  line-height: 1.7;
}

/* Only two-column tables use label/value proportions; comparisons keep scrolling. */
body.zm-ui .zm-spec-table:not(:has(tr > :nth-child(3))) {
  table-layout: fixed;
  min-width: 0;
}

body.zm-ui .zm-spec-table:not(:has(tr > :nth-child(3))) tr > :first-child {
  width: 30%;
}

body.zm-ui .zm-spec-table:not(:has(tr > :nth-child(3))) tr > :nth-child(2) {
  width: 70%;
}

body.zm-ui .zm-spec-table :is(th, td) {
  vertical-align: top;
  line-height: 1.8;
}

body.zm-ui :is(.zm-table-scroll, .zmc18-table-scroll, .zm-release-table) {
  max-width: 100%;
  overscroll-behavior-inline: contain;
}

body.zm-ui :is(.zmp-section, .zmc18-content, .zmc18-faq, .zm-product-showcase, .zm-case-grid, .zm-dl-tools, .zm-site-nav) :is(a, button, input, select, summary):focus-visible {
  outline: 3px solid var(--zm-teal, #087f78);
  outline-offset: 4px;
}

body.zm-ui .zm-ui-footer a:focus-visible {
  outline: 3px solid currentColor;
  outline-offset: 4px;
}

body.zm-ui .zmp-card .zmp-image:focus-visible {
  outline-offset: -4px;
}

body.zm-ui :is(.zmp-resources, .zmp-subpages a, .zmc18-product-nav a) {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

body.zm-ui .zmc18-faq summary {
  min-height: 44px;
  align-content: center;
}

@media (min-width: 901px) and (max-width: 1150px) {
  body.zm-ui section[id] {
    scroll-margin-top: 144px;
  }
}

@media (max-width: 921px) {
  body.zm-ui .zm-product-showcase {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  body.zm-ui .zm-product-showcase {
    grid-template-columns: minmax(0, 1fr);
  }

  body.zm-ui :is(.zm-product-card .body, .zmp-card-body, .zm-case-card .body) {
    padding: 18px;
  }

  body.zm-ui :is(.zm-product-card .image, .zmp-image) {
    min-height: 0;
    max-height: 240px;
    padding: 18px;
  }

  body.zm-ui .zmc18-story,
  body.zm-ui .zmc18-story.has-image {
    padding: 18px;
    gap: 18px;
  }

  body.zm-ui .zmc18-content .zmc18-stories {
    gap: 20px;
  }

  body.zm-ui .zm-spec-table:not(:has(tr > :nth-child(3))) tr > :first-child {
    width: 36%;
  }

  body.zm-ui .zm-spec-table:not(:has(tr > :nth-child(3))) tr > :nth-child(2) {
    width: 64%;
  }

  body.zm-ui .zm-spec-table :is(th, td) {
    padding: 11px 12px;
    overflow-wrap: anywhere;
  }

  body.zm-ui .zm-ui-footer nav a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }
}
