/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

/* Material Design Icons size helper */
.mdi.mdi-18px {
  font-size: 18px;
}

/* HTMX by default only makes indicators opacity:0%.
 * Also set their h/w to 0 so that they can be inside buttons.
 */
.htmx-indicator {
  width: 0;
  height: 0;
}
.htmx-request .htmx-indicator,
.htmx-request.htmx-indicator {
  width: unset;
  height: unset;
}

/* Anchor heading links */
.anchor-heading .anchor-link {
  color: inherit;
  text-decoration: none;
}

.anchor-heading .anchor-link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.anchor-heading .anchor-link::before {
  content: "#";
  position: absolute;
  margin-left: -1.25em;
  color: transparent;
  font-weight: normal;
}

.anchor-heading {
  position: relative;
  scroll-margin-top: 4rem;
}

.anchor-heading:hover .anchor-link::before {
  color: #9ca3af;
}

@media (prefers-color-scheme: dark) {
  .anchor-heading:hover .anchor-link::before {
    color: #6b7280;
  }
}
