/* ------------------------------------------
   Loading Skeleton
------------------------------------------- */
[data-dlh-loading] {
  display: inline-block;
  background: linear-gradient(90deg, #eee 25%, #ddd 37%, #eee 63%);
  background-size: 400% 100%;
  animation: dlh-skeleton 1.4s ease infinite;
  color: transparent !important;
  border-radius: 0.25rem;
  min-height: 1em;
  min-width: 4em;
  line-height: 1.2;
  white-space: nowrap;
}

@keyframes dlh-skeleton {
  0% {
    background-position: 100% 0;
  }
  100% {
    background-position: -100% 0;
  }
}

/* ------------------------------------------
   Inline Link Wrapper
------------------------------------------- */
.dlh-inline-link {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  position: relative;
  margin-top: 0;
  margin-bottom: 0;
}

/* ------------------------------------------
   Link Style: Underline
------------------------------------------- */
.dlh-style-underline {
  text-decoration: underline;
  text-decoration-color: currentColor !important;
  text-underline-offset: 0.25rem;
}

/* Link Style: Hover only */
.dlh-style-hover {
  text-decoration: none;
}

.dlh-parent-link {
  flex: 1;
}

.dlh-parent-link:hover .dlh-style-hover {
  text-decoration: underline;
  text-decoration-color: currentColor;
  text-underline-offset: 0.25rem;
}

/* Link Style: None (default) */
.dlh-style-none {
  text-decoration: none;
}

/* ------------------------------------------
   Line Break Support
------------------------------------------- */
.dlh-line-break {
  display: block !important;
  width: 100% !important;
  flex-basis: 100% !important;
  margin: 0;
}

/* Editor Visual Hint (Optional) */
.block-editor-writing-flow .dlh-line-break::after {
  content: "⏎";
  font-size: 0.75rem;
  color: #ccc;
  margin-left: 0.25rem;
}

[data-link-type="none"] .dlh-inline-link {
  text-decoration: none !important;
}

.dlh-inline-link .block-editor-block-list__layout {
  display: flex !important;
}
