/* Persistent site destinations; the lower pane changes between recent and saved. */
#sidebar.mley-site-sidebar .sidebar-content {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}
#sidebar.mley-site-sidebar .mley-site-navigation {
  flex: 0 0 auto;
  margin: .4rem 0 0;
  padding: 0 0 .4rem;
  border-bottom: 1px solid var(--border-color);
}
.mley-site-sidebar .mley-site-navigation a {
  min-height: 44px;
  box-sizing: border-box;
  gap: .6rem;
  line-height: 1.35;
  color: var(--text-color);
  text-decoration: none;
}
.mley-site-sidebar .mley-site-navigation a:hover { color: var(--accent-color); }
.mley-site-navigation a span { min-width: 0; }
.mley-site-navigation a:focus-visible,
.mley-site-sidebar summary:focus-visible {
  outline: 2px solid var(--accent-color);
  outline-offset: -2px;
}
#sidebar.mley-site-sidebar .mley-sidebar-index-panel,
#sidebar.mley-site-sidebar .mley-saved-panel {
  flex: 1 1 0;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  scrollbar-width: thin;
}
#sidebar.mley-site-sidebar :is(.mley-sidebar-index-panel, .mley-saved-panel)[hidden] { display: none; }
#sidebar.mley-site-sidebar .mley-home-sidebar-recents { margin-top: .45rem; }
#sidebar.mley-site-sidebar .mley-home-sidebar-hint { margin-bottom: .5rem; }
#sidebar.mley-site-sidebar .mley-home-sidebar-footer {
  flex: 0 0 auto;
  padding-block: .5rem;
}
.mley-site-menu-button { gap: .4rem; width: auto !important; padding-inline: .7rem !important; }
.mley-site-menu-button span { font-size: .8rem; }
@media (max-width: 480px) {
  /* The accessible names remain explicit; short labels fit the compact toolbar. */
  .fixed-header [data-collapse-label="herramientas"] > span { display: none; }
  .fixed-header [data-collapse-label="herramientas"]::after { content: "Más"; font-size: .8rem; }
}
/* Keep destinations reachable in landscape and at high browser zoom. */
@media (max-height: 620px) {
  #sidebar.mley-site-sidebar .sidebar-content { padding-block: 0; }
  #sidebar.mley-site-sidebar .mley-site-navigation {
    flex: 0 1 auto;
    min-height: 44px;
    max-height: 38dvh;
    overflow-y: auto;
  }
  #sidebar.mley-site-sidebar :is(.mley-sidebar-index-panel, .mley-saved-panel) { min-height: 44px; }
  #sidebar.mley-site-sidebar .sidebar-brand { min-height: 44px; padding-block: 0; }
  #sidebar.mley-site-sidebar .mley-saved-tabs { margin-block: .3rem; }
  #sidebar.mley-site-sidebar .mley-home-sidebar-footer { padding-block: 0; }
}
