.hubgrade-section-watermark {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.hubgrade-section-watermark::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: url('assets/hubgrade-h-mark-fb047b.svg');
  background-repeat: no-repeat;
  background-position: right -7rem top 20%;
  background-size: min(34vw, 26rem);
  opacity: 0.08;
}

.hubgrade-section-watermark > * {
  position: relative;
  z-index: 1;
}

.hubgrade-section-watermark--left::before {
  background-position: left -8rem bottom -5rem;
  background-size: min(38vw, 30rem);
  opacity: 0.065;
}

body[class*='bg-obsidian'],
body[class*='bg-[#0'],
body[data-theme='dark'] {
  --hubgrade-watermark-opacity: 0.1;
}

body[class*='bg-obsidian'] .hubgrade-section-watermark::before,
body[class*='bg-[#0'] .hubgrade-section-watermark::before,
body[data-theme='dark'] .hubgrade-section-watermark::before {
  opacity: var(--hubgrade-watermark-opacity);
}

body[class*='bg-obsidian'] .hubgrade-section-watermark--left::before,
body[class*='bg-[#0'] .hubgrade-section-watermark--left::before,
body[data-theme='dark'] .hubgrade-section-watermark--left::before {
  opacity: 0.08;
}

@media (max-width: 640px) {
  .hubgrade-section-watermark::before {
    background-position: right -5rem top 20%;
    background-size: min(58vw, 19rem);
  }

  .hubgrade-section-watermark--left::before {
    background-position: left -5rem bottom -3rem;
    background-size: min(62vw, 21rem);
  }
}
