/* Shared finish for the site’s solid cards. */
:root {
  --glass-gray: #d6d9db;
  --glass-fill: #e2e7ea;
  --glass-filter: none;
  --glass-rim: rgb(255 255 255 / 46%);
  --glass-shadow: 0 10px 30px -18px rgb(15 56 90 / 16%),
    inset 0 1px 0 rgb(255 255 255 / 65%),
    inset 0 -1px 0 rgb(255 255 255 / 22%);
  --glass-hover-shadow: 0 14px 34px -19px rgb(15 56 90 / 19%),
    inset 0 1px 0 rgb(255 255 255 / 75%);
  --glass-transition: background 400ms ease, box-shadow 400ms ease, transform 400ms ease;
}

@supports (color: color-mix(in srgb, black, white)) and
  ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  :root {
    --glass-fill: linear-gradient(135deg,
      rgb(255 255 255 / 52%) 0%,
      color-mix(in srgb, var(--glass-gray) 42%, transparent) 47%,
      color-mix(in srgb, var(--glass-gray) 66%, transparent) 100%);
    --glass-filter: blur(24px) saturate(115%);
  }
}

/* Cards with a solid background in the approved layout. */
:is(
  .area-slider .area-card, .contact-lead, .catalog-card,
  .certification-record, .internal-section > .ethics-channel, .salary-report,
  .press-release, .press-kit-item, .release-archive .news-archive-featured .news-entry,
  .ppp-contract, .ppp-structure, .catalog-filters, .project-facts,
  .form-confirmation, .contact-location, .supplier-group
) {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: var(--glass-fill);
  -webkit-backdrop-filter: var(--glass-filter);
  backdrop-filter: var(--glass-filter);
  border: 1px solid var(--glass-rim);
  border-radius: 28px;
  box-shadow: var(--glass-shadow);
  transition: var(--glass-transition);
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  :is(.area-slider .area-card, .contact-lead, .catalog-card, .press-release,
    .release-archive .news-archive-featured .news-entry):hover {
    transform: translateY(-3px);
    box-shadow: var(--glass-hover-shadow);
  }
}

.area-slider {
  --slide-shadow-gutter: 8px;
  margin-inline: calc(-1 * var(--slide-shadow-gutter));
  padding-inline: var(--slide-shadow-gutter);
  padding-block: 12px 24px;
  scroll-padding-inline: var(--slide-shadow-gutter);
}

@media (max-width: 660px) {
  .area-slider {
    --glass-fill: radial-gradient(ellipse 80% 100% at 63% 48%,
      rgb(214 217 219 / 52%), rgb(214 217 219 / 31%) 55%, rgb(214 217 219 / 17%));
    --glass-rim: transparent;
    --glass-shadow: 0 8px 24px -18px rgb(15 56 90 / 12%);
    --glass-hover-shadow: var(--glass-shadow);
  }
}

:is(.catalog-card, .release-archive .news-archive-featured .news-entry):focus-visible {outline-offset: -4px}

.liquid-glass-contact {display: flow-root}

@media (prefers-reduced-motion: reduce) {
  :root {--glass-transition: none}
}
