/* Shared presentation and public site palette. Astra supplies typography. */
body.zm-ui {
  --zm-site-ink: #191919;
  --zm-site-muted: #545454;
  --zm-site-inverse-muted: #dedede;
  --zm-site-accent: #b91b27;
  --zm-site-accent-hover: #9e1420;
  --zm-site-control: #b5b5b5;
  --zm-site-dark: #171717;
  --zm-teal: var(--zm-site-accent);
  --zm-ink: var(--zm-site-ink);
  --zm-muted: var(--zm-site-muted);
  --zm-paper: #f5f5f5;
  --zm-line: #e1e1e1;
  background: #fff;
}

body.zm-ui :is(.zm-clean-header, .zm-en-header) {
  background: #fff;
  box-shadow: none;
}

body.zm-ui .zm-site-nav > a[aria-current] {
  background: #fff;
  box-shadow: inset 0 -2px var(--zm-site-accent);
}

body.zm-ui :is(.zm-about-hero, .zm-livestock-hero, .zm-venue-hero, .zm-dl-hero, .zmg-hub-hero, .zmg-cta-box, .zm-about-cta, .zm-ui-footer) {
  background: var(--zm-site-dark);
}

body.zm-ui :is(.zm-about-kicker, .zm-livestock-kicker, .zm-livestock-title) {
  color: #fff;
}

body.zm-ui :is(.zm-about-hero .zm-about-stat, .zm-livestock-hero .zm-about-stat, .zm-about-hero .zm-about-aside) {
  background: #ffffff12;
  border-color: #ffffff35;
}

body.zm-ui :is(.zm-livestock-band:not(.white), .zm-livestock-stats, .zmc-product, .zm-geo-panel) {
  color: var(--zm-ink);
  background: var(--zm-paper);
  border-color: var(--zm-line);
}

body.zm-ui :is(.zmc-kicker, .zm-livestock-eyebrow, .zm-geo-card .tag) {
  color: var(--zm-site-muted);
}

body.zm-ui :is(.zm-spec-table, .zmc-table, .zmc18-content table) th {
  background: var(--zm-paper);
  color: var(--zm-ink);
}

body.zm-ui .zm-inquiry-address {
  margin-top: 16px;
  font-style: normal;
}

body.zm-ui .zm-inquiry-address a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

body.zm-ui .zm-release-faq details {
  border-color: var(--zm-line);
}

body.zm-ui .zm-static-details {
  border-bottom: 1px solid var(--zm-line);
  padding-block: 14px;
}

body.zm-ui .zm-static-summary {
  font-weight: 700;
  color: var(--zm-ink);
  margin-bottom: 8px;
}

body.zm-ui #zm-site-services {
  scroll-margin-top: 175px;
}

@media (max-width: 900px) {
  body.zm-ui :is(.zm-clean-header, .zm-en-header) .zm-geo-wrap {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding-block: 10px 0;
  }
  body.zm-ui .zm-site-nav {
    position: static;
    display: flex;
    justify-content: flex-start;
    flex-wrap: nowrap;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    padding-bottom: 3px;
  }
  body.zm-ui .zm-site-nav > a {
    flex: none;
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    white-space: nowrap;
  }
}

body.zm-ui .zm-home-carousel {
  background: var(--zm-paper);
  color: var(--zm-ink);
}

body.zm-ui .zm-home-carousel .zm-carousel-dot[aria-current=true]::before {
  background: var(--zm-site-accent);
}

body.zm-ui :is(.zm-contact-dock #zma-launch, #zm-assistant #zma-launch) {
  background: var(--zm-site-dark);
  color: #fff;
}
body.zm-ui .zm-about-section {
  background: #fff;
}

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

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);
  border-radius: 12px;
  background: #fff;
}

body.zm-ui :is(.zm-product-card, .zmp-card, .zm-case-card):focus-within {
  border-color: var(--zm-site-accent);
}

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: var(--zm-paper);
}

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);
  background: var(--zm-paper);
}

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-site-accent);
  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;
  }
}
