/* Visual-only enhancement for the bilingual content pages. */
body::before {
  content: "";
  position: fixed;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(rgba(0, 143, 111, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(0, 143, 111, .035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, transparent, #000 14%, #000 70%, transparent);
}

.site-header {
  transition: box-shadow .35s ease, border-color .35s ease, background .35s ease;
}

.site-header:hover {
  border-color: rgba(76, 224, 184, .65);
  background: rgba(250, 255, 253, .96);
  box-shadow: 0 22px 70px rgba(0, 132, 102, .16), 0 0 0 1px rgba(123, 255, 218, .18);
}

.page-shell {
  position: relative;
  isolation: isolate;
}

.page-shell::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 70px;
  right: -7vw;
  width: min(48vw, 660px);
  aspect-ratio: 1;
  border: 1px solid rgba(0, 172, 129, .13);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(104, 247, 201, .13), transparent 65%);
  box-shadow: 0 0 75px rgba(43, 223, 172, .08);
  pointer-events: none;
  animation: ring-breathe 8s ease-in-out infinite;
}

.page-shell > .content, .page-shell > .hero, .page-shell > .card-grid {
  animation: content-enter .7s cubic-bezier(.2, .8, .2, 1) both;
}

.content, .card {
  border-color: rgba(181, 224, 211, .8);
  box-shadow: 0 26px 76px rgba(4, 55, 44, .09), 0 0 28px rgba(58, 221, 175, .045);
}

.card, .fact, .content .note {
  transition: transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .35s ease, border-color .35s ease, background .35s ease;
}

.card:hover, .fact:hover, .content .note:hover {
  transform: translateY(-5px);
  border-color: rgba(40, 209, 163, .55);
  box-shadow: 0 28px 72px rgba(8, 91, 69, .14), 0 0 32px rgba(35, 224, 174, .09);
}

.site-nav a, .nav-download, .content a, .card a {
  transition: color .22s ease, background .22s ease, transform .22s ease, box-shadow .22s ease;
}

.nav-download:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(5, 69, 57, .22);
}

.brand:focus-visible, .site-nav a:focus-visible, .nav-download:focus-visible, .content a:focus-visible, .card a:focus-visible {
  outline: 3px solid #16c996;
  outline-offset: 4px;
}

@keyframes ring-breathe { 0%, 100% { transform: scale(.94); opacity: .6 } 50% { transform: scale(1.04); opacity: 1 } }
@keyframes content-enter { from { opacity: 0; transform: translateY(24px) } to { opacity: 1; transform: translateY(0) } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
