/*
 * 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.
 */

/* Native dialog styling */
dialog {
  overflow-y: auto;
  max-height: min(90dvh, 90vh);
}

dialog::backdrop {
  background-color: rgba(0, 0, 0, 0.7);
}

/* Hide default disclosure triangle on <summary> elements */
summary::-webkit-details-marker {
  display: none;
}
summary::marker {
  content: "";
}

/* Show/Hide workout toggle — swap labels when details is open */
details[open] .show-label {
  display: none !important;
}
details[open] .hide-label {
  display: inline-flex !important;
}
