/* Reserve a medium rectangle before the responsive unit has a response. */
.ad-slot {
  min-inline-size: 0;
  max-inline-size: 100%;
  min-block-size: 250px;
  margin-block: 3rem;
}
/* Keep keyboard-accessible menu lists inside the viewport. */
[aria-labelledby="layoutLanguage"] { max-block-size: 70dvh; overflow-y: auto; }
.navbar .dropdown-item { white-space: normal; }
/* Remote titles, captions and filenames may have no word breaks. */
main .card-body { overflow-wrap: anywhere; }
[data-dl-cover]:not([src]) { display: none; }

/* Preserve feedback for a press or an open menu on the two mobile controls. */
@media (max-width: 767.98px) {
  header [data-layout-actions] > .nav-item > :is([data-theme-toggle], #layoutLanguage):is(:active, [aria-expanded="true"]) {
    background-color: var(--tblr-nav-link-hover-bg);
  }
}
@media (max-width: 767.98px) and (hover: none) {
  header [data-layout-actions] > .nav-item > :is([data-theme-toggle], #layoutLanguage):not(:focus-visible, :active, [aria-expanded="true"]) {
    background-color: transparent;
  }
}

/* Keep the hero features in one Tabler card-shaped surface. */
.lt-hero-features {
  display: inline-grid;
  grid-template-columns: repeat(4, minmax(0, auto));
  max-inline-size: 100%;
  border-radius: var(--tblr-card-border-radius);
}
.lt-hero-features > li {
  min-inline-size: 0;
  overflow-wrap: anywhere;
}
.lt-hero-features > li + li {
  border-inline-start: var(--tblr-border-width) solid var(--tblr-border-color);
}
@media (max-width: 575.98px) {
  /* Keep all four cells in one row; only long labels may wrap inside a cell. */
  .lt-hero-features {
    grid-template-columns: repeat(4, minmax(min-content, max-content));
  }
  .lt-hero-features > li {
    padding-inline: .25rem;
    overflow-wrap: anywhere;
    hyphens: auto;
  }
}

@media (max-width: 379.98px) {
  .lt-hero-features { font-size: .75rem; }
  .lt-hero-features > li { padding-inline: .125rem; }
}
